Tagged: featured slider
- This topic has 30 replies, 7 voices, and was last updated 10 years, 6 months ago by Sakin.
-
AuthorPosts
-
May 29, 2013 at 11:04 am #9610donestefano71Member
Hi Sakin,
I know you don’t give support for qtranslate issue, but i would like to ask something about Catch Everest Pro. I want use Qtranslate quick tags or tags in the titles and content (excerpt??) of the featured slider and i think that adding some code in my child theme i can make it work, but i can’t manage to find the function who generate the slider. Googleing i’ve found various post talking about this and i think that by adding codes like the following i can do it:
if(function_exists(‘qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage’)) $post_excerpt = qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage($post_excerpt);
or
if(function_exists(‘qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage’)) $more_link = qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage($more_link);the problem is that i don’t know which are the right names i have to use instead of ($post_excerpt) and ($more_link) for example, and where i have to insert this code, if should be enough put it in my child theme functions.php file..
Any suggestion?? thanks in advance for your help.my under construction web page is http://www.mexiconuvole.com
May 30, 2013 at 11:01 pm #9677SakinKeymaster@donestefano71: I am sorry I don’t understand your requirement.
About the excerpt. We have added option to modify the excerpt in catcheverest-functions.php file. You can look at functions catcheverest_excerpt_desired() and others. It’s well commented, so you will understand.
May 31, 2013 at 12:08 am #9693donestefano71MemberThanks for your answer and sorry for don’t explain my problem well.
The issue is that i’m using Qtranslate for a multilingual site.
The plugin is well integrated in catch everest-pro pages and post, giving the opportunity to the developer of write in the editor the text for each language he using. Switching the languages in the selector on the page, automatically switch the title and content of pages and posts. The problem is with the title and content of featured image slider. In qtranslate, when you don’t have the fields or options to put texts in other language, you have the possibility of use quick tags like this ([:es] Bienvenidos [:it] Benvenuti [:en] Welcome ).
In the support forum of qtranslate i found lot of people saying that in this case in possible use the “qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage(the….);” functions for the variable you want to translate.
but i have some doubt of how use it in catch themes.
I’ve tried with stuff like this:(in contents.php)
<div class=”entry-container”>
<header class=”entry-header”>
<h1 class=”entry-title”>” title=”<?php echo esc_attr( sprintf( __( ‘Permalink to %s’, ‘catcheverest’ ), the_title_attribute( ‘echo=0’ ) ) ); ?>” rel=”bookmark”><?php qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage (the_title); ?></h1>
<?php if ( ‘post’ == get_post_type() ) : ?>
<div class=”entry-meta”>
<?php catcheverest_header_meta(); ?>
</div><!– .entry-meta –>
<?php endif; ?>
</header><!– .entry-header –>and it works partially. The strange thing was that the switching of languages only work after save some changing in theme options panel. So i spent all night searching in your code and i see that after changes in the panel you send a delete transient command. Then i saw in your catcheverest-functions.php the function for the fetured image slider that have the delete transient but is // commented. I activate that and my translation works but in a local test site. When i tried to do the same on the online site where i´m using a child theme it looks like the catch-everest functions.php don’t work in the child. So i put the command
delete_transient( ‘catcheverest_image_sliders’ );
in home.php and it works.
Now i think you’ll wondering why i’m still bothering you if it looks like i solved the problem.
First of all ’cause i want to share this with the community.
Second i don’t really know if i’m doing it well, i’m newby with php and i’m afraid that this is not the right way of modify the files.
Third most important and very big issue, i can’t tell the qtranslate plugin a different homepage for each language so if i click on HOME when i’m in english the site go back to inicio in spanish that is the homepage.
I saw in a blog that in another kind of theme, a guy solved the issue by changing this code: echo “<li $current>Home“;
with this:
echo “<li $current>Home“;
Do we have something similar in catch-theme and in case of yes where i can find it??thanks for your help and sorry for be too large
May 31, 2013 at 12:34 am #9703donestefano71MemberMay 31, 2013 at 12:35 am #9704donestefano71Memberagain sorry but the code is changing let’s try so:
echo "<li $current><a href='".bloginfo('url')."'>Home</a></li>";
echo “<li $current>Home“;
May 31, 2013 at 12:37 am #9705donestefano71Memberok i need to change something similar to this :
echo "<li $current><a href='".get_settings('home')."'>Home</a></li>";
and transform to the code i posted before
May 31, 2013 at 9:50 am #9724SakinKeymaster@donestefano71: Great that you solved it. Now are you talking about menu. Then right now your using default menu options by WordPress itself. It’s not manual, it’s from function wp_nav_menu() http://codex.wordpress.org/Function_Reference/wp_nav_menu . If you need to customize this then you have to use action filter.
March 13, 2014 at 9:52 pm #21320RobsonMember@donestefano71 I am having the same issue at my website (www.robsonrs.com). The title and contents at the slider banners don’t translate properly. I just visited the website you built (http://www.mexiconuvole.com/) and I noticed that it´s working. Can you give me some help to do the same. I read the previous posts with codes but I didn´t understood what you did. Thanks.
March 13, 2014 at 11:22 pm #21322donestefano71Memberhello Robson,
1.- right now you are not using title and content in your slider correct??
2.- have you already made any change to your code for the qtranslate issue? if yes what did you change??March 14, 2014 at 5:02 am #21328RobsonMemberHello @donestefano71
1) Correct. Because it wasn’t working properly. But if you want to see something I can put it online again.
2) I didn’t change my code yet. I don’t have the necessary skills.Maybe some prints or codes (if you changed the code) of your project can help me.
I made a document to help you to understand the issues:
https://drive.google.com/file/d/0B956eH47kKc2Ml8xbkRZZ0E1cUE/edit?usp=sharingThank you so much in advanced.
Robson ([email protected])March 14, 2014 at 5:18 am #21329RobsonMember@donestefano71
In time. I just solved the text issue. With the topic below:http://catchthemes.com/support-forum/topic/qtranslate-plugin-in-catch-everest-pro/#post-18900
Now the problem is only with the links…. 🙁
March 14, 2014 at 9:36 am #21332SakinKeymaster@Robson: Oh qtranslate is very confusing. Maybe posting in support forum of qtranslate and then answering will be better.
For link can you try relative link like for resume:
/curriculo
March 15, 2014 at 11:28 am #21401RobsonMember@Sakin: I noticed that it´s a common issue with catch and other themes, but other themes made some changes on the themes that the problem and they have been solved. Can you help me with that? Other people will use the solution. thank you.
The relative link didn’t work. I Posted a topic at the qtranslate support site.
Link: http://robsonrs.com/
March 15, 2014 at 4:03 pm #21404SakinKeymaster@Robson: I am also searching for solution. As we haven’t work with this plugin. If you get any answer from their forum then do let me know. I will also post in details, if I find anything.
March 15, 2014 at 10:48 pm #21411donestefano71MemberHi Robson
I’m collecting the information for you, give me few hours and I’ll update this post with all the modifications I’ve made, hoping to help you.March 15, 2014 at 11:45 pm #21414SakinKeymaster@Robson: We will be updating the theme to support qTranslate custom links. Let me know if you need any other things to be added for qTranslate. For slider, the code will be like this https://gist.github.com/catchthemes/9565356
March 16, 2014 at 12:25 am #21416RobsonMember@donestefano71
Great. Thank you. It will be great for a lot of people. I used the function and the problem with the links for slider is gone. You can check at the website. The issues now are just: 1) the Home link (at the main menu), that always resets the language. 2) The Image and texts links at the home page, below the slider image. Take a look my website to see what I am talking about.@Sakin
Thank you so much for your help!!! I hope that I can help you one day with something. This code will also help @Sakin, with new updates for the theme. I look forward your reply.March 16, 2014 at 1:22 am #21419donestefano71MemberOk, i begin to send some information, i’m on work now, i’ll check it well in the night, but I know how sad it is get stucked on something like this. Look for the problem of language reset, that if you check it well you’ll see happen in the footer too, i solved in this way:
First of all i’m using a child theme, (hope you do the same)
I copied the home.php file and add inmediatly after the line with
get_header();
the following code:
delete_transient( 'catcheverest_image_sliders' ); delete_transient( 'catcheverest_homepage_headline' ); delete_transient( 'catcheverest_homepage_featured_content' ); delete_transient( 'catcheverest_footer_content' ); delete_transient( 'catcheverest_footercode' );
with this you can solve the problem of language resetting….
For the other thing of the links in homepage featured content I find a shortcut not a solution. When I did the site there was no way to make the links work, using the qtransate quick tags in the link field, but the content field allow you to write something like this:
[:es]<a id="depa_titulo" href="/departamentos" >Departamentos</a>[:it]<a id="depa_titolo" href=http://www.mexiconuvole.com/it/departamentos">Appartamenti</a>[:en]<a id="depa_title" href=http://www.mexiconuvole.com/en/departamentos">Apartments</a>
Then playing with CSS you say to the title to disappear with a display:none and you have your content working as title with a working relative link.
But as you can see i did not need content there. I saw you wrote things there inside, give a try enhancing the code above creating a container div for your content and see if it work.
In the night I’ll send you some css.March 16, 2014 at 1:39 am #21421SakinKeymaster@donestefano71: Thanks for the info I will add function to reset all the transit needed using the condition inside the functions like this
if ( function_exists( 'qtrans_convertURL' ) ) { delete_transient( 'catcheverest_image_sliders' ); }
So, I hope the upcoming version 1.7 will fix your issues. We are testing and will be live in few days.
March 19, 2014 at 3:32 pm #21829 -
AuthorPosts
- The topic ‘Qtranslate and featured slider’ is closed to new replies.