Support Forum

Home Forums OceanPlaza WP Read more button

All Wordpress Themes

This topic contains 9 replies, has 3 voices, and was last updated by  Support Team 4 3 years, 8 months ago.

  • Author
    Posts
  • #13810

    sannev
    Participant

    Where are the setting from the “read more button”?
    For example were can I set the “text length” before the “cut” moment and the “read more” button?
    And where can I change the word “read more” in our own language?
    Thx Sanne

  • #13814

    ggt
    Keymaster

    You can change “read more” in file ” oceanplaza\wp-content\themes\oceanplaza\archive.php”
    Search and edit string “” class=”bbtn nomarg”><?php _e(‘READ MORE’); ?>“. Change “READ MORE” to some other text.
    To set your custom excerpt length(“text length” before the “cut”) add this code in the ending of file: Appearance->Editor->functions.php

    function custom_excerpt_length( $length ) {	return 20;
    }
    add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );

    Change “20” to some other number for excerpt length change.

  • #15059

    sannev
    Participant

    Hello support,

    Can you help me with a three extra translations in the theme?

    I want to translate:

    *more –> in the portfolio page
    *show all –> in the portfolio page
    *search here –> in the sidebar (widget) of the blogpage (“nieuws”)

    Thanks for your time,
    Sanne

  • #15063

    Support Team 4
    Participant

    Hello, Sanne!
    “more”:
    Copy from main to child theme file \wp-content\themes\oceanplaza\portfolio-page.php and edit it.
    In file find class="load_more">MORE</a> and replace on class="load_more"><?php _e('MORE'); ?></a>. After this you can find this string in wmpl.
    “show all”:
    Again open file portfolio-page.php in child theme, find class="selected">show all</a></li> and replace on class="selected"><?php _e('show all'); ?></a></li>
    “search here” – you should already find this text, try to search as search here, without dots.
    I wrote it based on the using wpml plugin.

  • #15065

    sannev
    Participant

    Thx “more” and “show all” is done !

    I didn’t understand: …. “search here” – you should already find this text, try to search as search here, without dots.

    In which file I found “search here” ? That is not clear for me

    thx Sanne

  • #15066

    Support Team 4
    Participant

    search here already placed in file as <?php esc_attr_e('search here &hellip;', 'responsive'); ?> and should be visible for translate. How you translate? Try on the analogy also with it.

  • #15068

    sannev
    Participant

    Sorry 4 but in which file I found “search here” ?
    That is not clear for me

    thx Sanne

  • #15069

    Support Team 4
    Participant

    This code is placed in file \wp-content\themes\oceanplaza\searchform.php.

  • #15070

    sannev
    Participant

    THX done !!

  • #15071

    Support Team 4
    Participant

    Good 🙂

The topic ‘Read more button’ is closed to new replies.