Hello,
I want to change the READ MORE button text in sliders and also I want to change the SUBMIT text on contact button of footer widget.
What files do I have to edit?
Thanks!
(27 posts)
(7 voices)
Hello,
I want to change the READ MORE button text in sliders and also I want to change the SUBMIT text on contact button of footer widget.
What files do I have to edit?
Thanks!
The easiest way is to edit the .pot file in the language folder.
Edit it with PoEdit and upload the language files (.mo and .po) to the language folder.
So I did it because I needed it translated too.
Its much better and more comfortable than to translate it in the php files.
Greets
Hi,
Regarding your questions:
1) Open the file "lib/functions/sliders.php". In lines #217 and #368 you will find the code in charge of generating the captions:
$out .= '<p><a href="' . $link_url . '" class="button_link hover_fade"><span>Read More</span></a></p>';
2) Go to the file "lib/shortcodes/16-contact.php". In line #146 you will find this code:
$out .= '<input type="submit" value="' . $submit_value . '" class="contact_form_submit fancy_button" />';
Replace it with:
$out .= '<input type="submit" value="Your Caption" class="contact_form_submit fancy_button" />';
Hope that helps.
Thanks! I will give it a try!
Hi,
The sliders.php change worked perfectly but not the 16-contact.php
I change the value on value="Your Caption" but it never changes.
Any suggestion?
Thanks!
Hi,
In that same file "16-contact.php", go to line #190:
$out .= '<input type="submit" value="' . __( 'Submit', MYSITE_TEXTDOMAIN ) . '" class="contact_form_submit fancy_button" />';
Replace the "Submit" caption with your own one, and let us know the results.
I want to change the language via the language file awake.pot.
But the changes are not accepted. what can i do?
Hello wbmdesign,
Most of our customers use a multi-lingual plugin such as QTranslate or WPML,
http://mysitemyway.com/docs/index.php/Using_WPML
http://mysitemyway.com/docs/index.php/QTranslate
I would check out QTranslate since it is free and easy to use.
thank you!
but there is no way to translate it by editing the language file?
msgid "Password Protected"
msgstr "here my own text")
i don't want to use any plugin.
If you want to translate it manually see here, http://urbangiraffe.com/articles/translating-wordpress-themes-and-plugins/. I would open up the .pot file in Poedit which is a program designed for this.
You can easily edit the lines that way and upload the .mo file when your done.
I'm trying to make the "read more" button to open in a new window but I don't have a slider.php within my functions folder inside lib.
Any help is appreciated. Thanks
Hello bluereach,
Your talking about the read more button on your slides correct? What theme and version are you using?
I'm using 1.6 and I'm talking about the "read more" buttons on the scroller on the front page.
Open up /wp-content/themes/infocus/lib/includes/featured-custom.php and around line 64 you should see this,
<a href="<?php echo $$custome_url; ?>" class="button">Read More</a>
Change it like this,
<a target = "_blank" href="<?php echo $$custome_url; ?>" class="button">Read More</a>
Hi.
I want to change read more button text. I have changed lines #217 and #368 in "lib/functions/sliders.php" but it still doesn't work. Please help.
Hello Sinaya,
Where is the read more button located that you want to edit? Changing the lines in sliders.php will edit the read more buttons that appear on the slider.
Go ahead and take a screenshot of the area and if possible send us a link to your page.
Hi,
The code that generates that button is located in the file "lib/functions/theme.php". In lines #1008 and #1016 you will find this piece of code:
__( 'Read More', MYSITE_TEXTDOMAIN )
Replace that caption with your own one, and let us know the results.
I've replaced caption in both lines with my own, but it still doesn't work. A name of the button is still showing up as "Read More".
if ( !function_exists( 'mysite_read_more' ) ) :
function mysite_read_more() {
global $post;
$out = '<span class="post_more_link">ID ) ) . '">' . __( 'Beri Dalje', MYSITE_TEXTDOMAIN ) . '</span>';
return $out;
}
endif;
if ( !function_exists( 'mysite_full_read_more' ) ) :
function mysite_full_read_more( $more_link, $more_link_text ) {
global $post;
$out = '<span class="post_more_link">ID ) ) . '#more-' . $post->ID . '">' . __( 'Beri Dalje', MYSITE_TEXTDOMAIN ) . '</span>';
return '[raw]' . $out . '[/raw]';
}
endif;
Your using inFocus correct? Try lines 517 and 528 in /wp-content/themes/infocus/framework.php,
$out = '<p><a class="post_more_link hover_fade" href="' . $url . '">' . __( 'Read More', MYSITE_TEXTDOMAIN ) . '</a></p>';
$out = '<p><a class="post_more_link hover_fade" href="' . esc_url( get_permalink( $post->ID ) ) . '#more-' . $post->ID . '">' . __( 'Read More', MYSITE_TEXTDOMAIN ) . '</a></p>';
It's working! Thanks! Yes I'm using infocus 2.3. and I would also need to translate some other areas but I'm really not good with codes... so I would need help again.
Is it also possible to edit calendar? I need it in slovenian language.
Instead of sifting through the theme files translating stuff here and there it would be easier to follow this guide, http://mysitemyway.com/docs/index.php/Translating_your_site.
With our .pot file you can edit it in a program called Poedit and easily translate the whole theme. Just follow the instructions in that tutorial.
Ok. I will try. Thanks.
I have created es_ES.mo, upload it to /wp-content/themes/infocus/ and into /wp-content/languages/
Plugin is installed in folder /public_html/wp-content/plugins/ I didn't find any WPML.
It doesn't work. I don't understand what is wrong. Please help. Should this plugin also appear in WordPress under plugins?
Go ahead and upload it into /wp-content/themes/infocus/languages/ also.
I did. Still doesn't work.
Are you using WPML? If you navigate to the WPML settings it should show you the status of your .mo file and tell you if it's finding it correctly or not.
Go ahead and send us a private message and we'll take a closer look. You can send us a PM by clicking on the "PM this user" link beneath our usernames.
You must log in to post.