Parenthesis read more

Community Forums Forums Design Tips and Tricks Parenthesis read more

This topic is: not resolved

Tagged: 

This topic contains 16 replies, has 3 voices, and was last updated by  walterbmw 1 year, 2 months ago.

Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • #56610

    walterbmw
    Participant
    Post count: 17

    Good morning
    my site is “upsamendrisiotto.ch”.
    Under the bar Call to action you can see the word [Continua...], in Italian is a read more.
    I would like to remove the parenthesis, but I can not find anything.
    I also tried with your instructions here:

    http://my.studiopress.com/snippets/post-excerpts/#content-more-link

    in functions.php but does not work here.
    I tried to change the details content archive in genesis settings but nothing.
    maybe it’s really a stupid thing, it is the first time it happens, usually I never had any problems.
    you can have some more information?

    thank you very much

    greetings

    http://upsamendrisiotto.ch
    #56743

    photastic
    Participant
    Post count: 75

    perhaps if you can post a part of your functions.php file containing the snippet itself, the one above & the one below so we can try to find out what’s going wrong?

    Could be a small typo that’s causing it not to work…


    Trying to craft webstuff at Photastic Webdesign
    Learning Genesis by solving unanswered topics

    #56749

    walterbmw
    Participant
    Post count: 17

    //* Customize search form input box text
    add_filter( ‘genesis_search_text’, ‘custom_search_text’ );
    function custom_search_text( $text ) {
    return esc_attr( ‘Scrivi qui quello che cerchi..’ );
    }

    //* Modify the WordPress read more link
    add_filter( ‘the_content_more_link’, ‘sp_read_more_link’ );
    function sp_read_more_link() {
    return ‘Continua qui..‘;
    }

    //* Modify the header URL
    add_filter(‘genesis_seo_title’, ‘custom_seo_title’, 10, 3);
    function custom_seo_title($title, $inside, $wrap) {
    $inside = sprintf( ‘%s‘, esc_attr( get_bloginfo(‘name’) ), get_bloginfo(‘name’) );
    $title = sprintf(‘<%s id=”title”>%s</%s>’, $wrap, $inside, $wrap);
    return $title;
    }

    //* Remove the post info function
    remove_action( ‘genesis_before_post_content’, ‘genesis_post_info’ );

    //* Customize the credits
    add_filter( ‘genesis_footer_creds_text’, ‘custom_footer_creds_text’ );
    function custom_footer_creds_text() {
    echo ‘<div class=”creds”><p>’;
    echo ‘Copyright © ‘;
    echo date(‘Y’);
    echo ‘ · UPSA Mendrisiotto · Creato e sviluppato da Wuesse.com‘;
    echo ‘</p></div>’;
    }

    #56750

    walterbmw
    Participant
    Post count: 17

    //* Customize search form input box text
    add_filter( ‘genesis_search_text’, ‘custom_search_text’ );
    function custom_search_text( $text ) {
    return esc_attr( ‘Scrivi qui quello che cerchi..’ );
    }

    //* Modify the WordPress read more link
    add_filter( ‘the_content_more_link’, ‘sp_read_more_link’ );
    function sp_read_more_link() {
    return ‘Continua qui..‘;
    }

    //* Modify the header URL
    add_filter(‘genesis_seo_title’, ‘custom_seo_title’, 10, 3);
    function custom_seo_title($title, $inside, $wrap) {
    $inside = sprintf( ‘%s‘, esc_attr( get_bloginfo(‘name’) ), get_bloginfo(‘name’) );
    $title = sprintf(‘<%s id=”title”>%s</%s>’, $wrap, $inside, $wrap);
    return $title;
    }

    //* Remove the post info function
    remove_action( ‘genesis_before_post_content’, ‘genesis_post_info’ );

    #56751

    photastic
    Participant
    Post count: 75

    your return link is missing the class=”more-link” tag…

    try adding that and see if that resolves the problem…


    Trying to craft webstuff at Photastic Webdesign
    Learning Genesis by solving unanswered topics

    #56754

    walterbmw
    Participant
    Post count: 17

    //* Customize the return to top of page text
    add_filter( ‘genesis_footer_backtotop_text’, ‘custom_footer_backtotop_text’ );
    function custom_footer_backtotop_text($backtotop) {
    $backtotop = ‘[footer_backtotop text="Torna in alto"]‘;
    return $backtotop;
    }

    //* Customize search form input box text
    add_filter( ‘genesis_search_text’, ‘custom_search_text’ );
    function custom_search_text( $text ) {
    return esc_attr( ‘Scrivi qui quello che cerchi..’ );
    }

    //* Modify the WordPress read more link
    add_filter( ‘the_content_more_link’, ‘sp_read_more_link’ );
    function sp_read_more_link() {
    return ‘Continua qui..‘;
    }

    //* Modify the header URL
    add_filter(‘genesis_seo_title’, ‘custom_seo_title’, 10, 3);
    function custom_seo_title($title, $inside, $wrap) {
    $inside = sprintf( ‘%s‘, esc_attr( get_bloginfo(‘name’) ), get_bloginfo(‘name’) );
    $title = sprintf(‘<%s id=”title”>%s</%s>’, $wrap, $inside, $wrap);
    return $title;
    }

    not work….

    #56755

    walterbmw
    Participant
    Post count: 17

    the class = “more-link” tag … exist.

    It does not work when I copy and paste on the forum …

    #56756

    walterbmw
    Participant
    Post count: 17

    //* Modify the WordPress read more link
    add_filter( ‘the_content_more_link’, ‘sp_read_more_link’ );
    function sp_read_more_link() {
    return ‘Continua qui..‘;
    }

    #56757

    walterbmw
    Participant
    Post count: 17

    incredible

    I paste and tag is missing

    #56758

    photastic
    Participant
    Post count: 75

    strange stuff… indeed, now I see that it exists on the site but not in your copied code…

    try putting your functions.php code between code tags here on the forum… Then it should come over and then the links aren’t parsed either…


    Trying to craft webstuff at Photastic Webdesign
    Learning Genesis by solving unanswered topics

    #56759

    walterbmw
    Participant
    Post count: 17
    //* Customize the return to top of page text
    add_filter( 'genesis_footer_backtotop_text', 'custom_footer_backtotop_text' );
    function custom_footer_backtotop_text($backtotop) {
    $backtotop = '[footer_backtotop text="Torna in alto"]';
    return $backtotop;
    }
    
    //* Customize search form input box text
    add_filter( 'genesis_search_text', 'custom_search_text' );
    function custom_search_text( $text ) {
    return esc_attr( 'Scrivi qui quello che cerchi..' );
    }
    
    //* Modify the WordPress read more link
    add_filter( 'the_content_more_link', 'sp_read_more_link' );
    function sp_read_more_link() {
    return '<a class="more-link" href="' . get_permalink() . '">Continua qui..</a>';
    }
    
     
    //* Modify the header URL
    add_filter('genesis_seo_title', 'custom_seo_title', 10, 3);
    function custom_seo_title($title, $inside, $wrap) {
    $inside = sprintf( '<a href="http://upsamendrisiotto.ch/i-ragazzi-del-corso-2013/" title="%s">%s</a>', esc_attr( get_bloginfo('name') ), get_bloginfo('name') );
    $title = sprintf('<%s id="title">%s</%s>', $wrap, $inside, $wrap);
    return $title;
    }

    I try…

    #56764

    Stewart
    Participant
    Post count: 156

    Hi,

    Try changing this line in your code :
    [php]
    add_filter( ‘the_content_more_link’, ‘sp_read_more_link’ );
    [/php]

    To

    [php]
    add_filter( ‘get_the_content_more_link’, ‘sp_read_more_link’ );
    [/php]

    hopefully that will resolve your issue.

    Stewart


    WordPress Developer – Need help upgrading to Genesis 2.0?My Blog
    Follow me on Twitter

    #56771

    photastic
    Participant
    Post count: 75

    where lies the difference in the 2 Stewart? Just out of curiosity and sheer interest of learning new stuff ;)


    Trying to craft webstuff at Photastic Webdesign
    Learning Genesis by solving unanswered topics

    #56772

    Stewart
    Participant
    Post count: 156

    Sure,

    As far I my understanding goes the ‘the_content_more_link’ is a WordPress filter which is applied in ‘wp-includes/post-template.php’.

    And the ‘get_the_content_more_link’ is the name of the filter that genesis has used to filter the ‘the_content_more_link’ in ‘genesis/lib/functions/formatting.php’

    Hopefully that explains it a bit better :)
    Stewart


    WordPress Developer – Need help upgrading to Genesis 2.0?My Blog
    Follow me on Twitter

    #56774

    walterbmw
    Participant
    Post count: 17

    not good.
    I also changed the buttons in widget featured
    above the bar call to action
    I do not want to change the 4 widgets …

Viewing 15 posts - 1 through 15 (of 17 total)

You must be logged in to reply to this topic.