Forums

How to remove "continue read" from Twenty Ten Child Theme (5 posts)

  1. carlosgonca
    Member
    Posted 11 months ago #

    I´ve already find any topics about this problem, but I´m not a developer and I need to understand how to remove "continue read". I know that I can use hook functions with a new function, but I don´t know how to do do.

    Can anyone explain me how to do this? I know that function that does this in parent theme is "twentyten_continue_reading_link()" and I try to use this code below:

    add_action( '??????????????)', 'my_child_theme_setup' );
    function my_child_theme_setup() {
    remove_filter( '????????', 'twentyten_continue_reading_link()' );
    }

    What Do I have to change in this function above and what I have to put in place with "?????????" ?

  2. esmi
    Theme Diva & Forum Moderator
    Posted 11 months ago #

    function twentyten_continue_reading_link() {
    	return '';
    }
  3. carlosgonca
    Member
    Posted 11 months ago #

    THis solution ok if I use it in Twenty Ten´s function, but I want to use in child function theme. If I put this there, I receive a error message. I need a solution to child theme.

    thanks a lot.

  4. esmi
    Theme Diva & Forum Moderator
    Posted 11 months ago #

    Oh sorry - for that function, you need to simply remove it from your child's template files.

  5. carlosgonca
    Member
    Posted 11 months ago #

    Sorry but it´s not the solution. If I remove the function, It continues to run from original function.php file. I need to remove this function, or deactivate it, but I don´t know how. And It needs to be in the child function file.

Reply

You must log in to post.

About this Topic