How Do I change the "Read more" text in the sliders?

pending (27 posts) (7 voices)

  1. keinetwork
    Member

    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!

    Posted 9 months ago #
  2. RemoD
    Member

    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

    Posted 9 months ago #
  3. Ruderic
    Support

    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.

    Posted 9 months ago #
  4. keinetwork
    Member

    Thanks! I will give it a try!

    Posted 9 months ago #
  5. keinetwork
    Member

    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!

    Posted 9 months ago #
  6. Ruderic
    Support

    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.

    Posted 9 months ago #
  7. wbmdesign
    Member

    I want to change the language via the language file awake.pot.
    But the changes are not accepted. what can i do?

    Posted 8 months ago #
  8. Elliott
    Support

    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.

    Posted 8 months ago #
  9. wbmdesign
    Member

    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.

    Posted 8 months ago #
  10. Elliott
    Support

    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.

    Posted 8 months ago #
  11. blureach
    Member

    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

    Posted 8 months ago #
  12. Elliott
    Support

    Hello bluereach,

    Your talking about the read more button on your slides correct? What theme and version are you using?

    Posted 8 months ago #
  13. blureach
    Member

    I'm using 1.6 and I'm talking about the "read more" buttons on the scroller on the front page.

    Posted 8 months ago #
  14. Elliott
    Support

    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>

    Posted 8 months ago #
  15. Sinaya
    Member

    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.

    Posted 6 months ago #
  16. Elliott
    Support

    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.

    Posted 6 months ago #
  17. Sinaya
    Member

    Thank you. Read more button is located at the post page. Where can I edit it then?

    Attachments

    1. prt.scr.jpg (112 KB, 3 downloads) 6 months old
    Posted 6 months ago #
  18. Ruderic
    Support

    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.

    Posted 6 months ago #
  19. Sinaya
    Member

    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;

    Posted 6 months ago #
  20. Elliott
    Support

    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>';

    Posted 6 months ago #
  21. Sinaya
    Member

    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.

    Attachments

    1. Untitled.jpg (101.3 KB, 0 downloads) 6 months old
    Posted 6 months ago #
  22. Elliott
    Support

    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.

    Posted 6 months ago #
  23. Sinaya
    Member

    Ok. I will try. Thanks.

    Posted 6 months ago #
  24. Sinaya
    Member

    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?

    Posted 6 months ago #
  25. Elliott
    Support

    Go ahead and upload it into /wp-content/themes/infocus/languages/ also.

    Posted 6 months ago #
  26. Sinaya
    Member

    I did. Still doesn't work.

    Posted 6 months ago #
  27. Elliott
    Support

    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.

    Posted 6 months ago #

Reply

You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme