WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] HELP PLEASE! (4 posts)

  1. AmmatuNur
    Member
    Posted 2 years ago #

    I added these lines to function.php
    `// Puts link in excerpts more tag
    function new_excerpt_more($more) {
    global $post;
    return '<a class="moretag" href="'. get_permalink($post->ID) . '"> Read the full article...</a>';
    }
    add_filter('excerpt_more', 'new_excerpt_more');


    But when I removed it, It is giving me error

    <strong>Parse error: syntax error, unexpected '<' in /home/ra/public_html/mydomain.com/wp-content/themes/bueno/functions.php on line 25</strong>

    Please tell how to resolve it!

  2. esmi
    Forum Moderator
    Posted 2 years ago #

    Download a fresh copy of your theme to your computer & extract the theme's functions.php file from the archive. Then upload this file to the wp-content/themes/bueno folder.

  3. AmmatuNur
    Member
    Posted 2 years ago #

    It did it- NOTHINGS happening :(
    Please help

  4. AmmatuNur
    Member
    Posted 2 years ago #

    Oh, IT WORKS!
    Thanks God! and thank You :D

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.