• Hi. Do not tell me what changes in the pattern need to do to when you click on read more post opened where ended the announcement ? Now open from the beginning of the post.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Theme Author Shaped Pixels

    (@shaped-pixels)

    Hi Roman…unless I need more sleep, could you please rephrase what it is you are asking about? I’m not quite understanding it…

    Thread Starter Roman Skopinskiy

    (@roman-skopinskiy)

    Sorry samoy English( I use online translator). Link download screenshots. Can be more clear. This applies to anchors.
    Link

    Thread Starter Roman Skopinskiy

    (@roman-skopinskiy)

    I suspect that these lines of code of the file extras.php :

    if ( ! function_exists( ‘seasonal_remove_more_link_scroll’ ) ) :
    function seasonal_remove_more_link_scroll( $link ) {
    $link = preg_replace( ‘|#more-[0-9]+|’, ”, $link );
    return $link;
    }
    add_filter( ‘the_content_more_link’, ‘seasonal_remove_more_link_scroll’ );
    endif;

    Theme Author Shaped Pixels

    (@shaped-pixels)

    Ah…now I understand. The code there is what takes the person to the top of the post article instead of where it continues from the post intro (summary). More information here: https://codex.www.ads-software.com/Customizing_the_Read_More

    I’ve seen people in the past complain they didn’t like that scroll function and wanted to see the full post.

    There is also another issue to consider. If someone uses excerpts for their blog post intros (summary) and that excerpt is part of a post that contains images or other elements in the first part of the post, the excerpt will strip those out. So if that scroll function was active and they go to click on “Read More”, they might miss seeing what did not show in the excerpt part because the person was put where the post continues at the anchor point. It means they would have to use the browser and scroll down to show the first part of the post they might have missed…again, if there were images or other elements there.

    Kind of hard to explain actually, but hopefully what I wrote made sense? Even I had to read it a couple of times, haha.

    However, to remove that function that takes that scroll function out, you would have to do that from a child theme level and create a new function that adds that functionality back in. This info might help…
    https://codex.www.ads-software.com/Function_Reference/remove_filter

    Thread Starter Roman Skopinskiy

    (@roman-skopinskiy)

    Ok, thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Read more’ is closed to new replies.