• rhythim

    (@rhythim)


    To add a Read More…link directly into a post Excerpt, wordpress codex documentation says this:
    How to add a link beneath an excerpt to the full post
    When using the excerpt feature WordPress does not automatically provide a link to a page containing the full post. To generate a link include the following code in the loop directly below <?php the_excerpt();

    a href=”<?php echo get_permalink(); ?>”> Read More…</a

    Or put the following in your theme’s functions.php.

    function new_excerpt_more( $more ) {
    return ‘ ‘ . __(‘Read More’, ‘your-text-domain’) . ‘‘;
    }
    add_filter( ‘excerpt_more’, ‘new_excerpt_more’ );

    I’m having trouble finding this “loop” where I can insert the <?php the_excerpt(); ?> command. I’ve opened both my index.php file and my functions.php file in Appearance>Editor – both are hundreds of lines of code long – and can’t seem to find where to insert this.
    And when I tried inserting the longer functions.php string above, directly into the functions.php file (right at the top,) it also did not create an automatic Read More in the post Excerpts.

    Please advise, thanks

    • This topic was modified 9 years ago by rhythim.
    • This topic was modified 9 years ago by rhythim.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    install the plugin “show current template”. It will put the current page template (php file) in the admin bar and show you all the templates used to generate the page. That will tell you what files to lok at.

    Do not edit theme files directly — create a child theme.

    https://codex.ww.wp.xz.cn/Child_Themes

    Share your URL and your code as well..

    Thread Starter rhythim

    (@rhythim)

    Thanks for replying Steve, and I apologize if I sound uneducated, but installing the Show Current Template plugin didn’t seem to help much.
    It did create a drop-down list in my menu bar, a very long list with items like themes/bridge/framework/etc. and themes/bridge/includes/etc., but nowhere in that list can I find an item that has the word ‘excerpts’ in it, or a reference to the loop under which I would paste the ?php the_excerpt(); code.
    The instructions in the codex – “To generate a link include the following code in the loop directly below ?php the_excerpt();” – assumes we know what a loop is, where to find the particular one in question, and how to open it and paste code under it. I’m not a WordPress newbie – I’ve created hundreds of successful WordPress sites and added lots of Custom CSS code – but I still feel those kind of instructions assume too much.
    SO since I’m not seeing anything about ‘excerpt’or what to do in that plugin’s list, can you give me a little more step-by-step here? Thanks

    Thread Starter rhythim

    (@rhythim)

    Altaf:
    URL is dev.toawaken.org.
    Not sure what you mean by show my code. I’m working in the Edit Post page, adding an Excerpt in the box provided just below the main post area. I usually work in “Visual’ and so don’t see the html. Even if I switch to ‘Text” and see some of the divs and other code, the Excerpt box looks the same.

    I’m simply trying to add a Read More link right in the Excerpt box, so that it’s on the same line as the last line of excerpt text, instead of a stand-alone Read More button a couple lines below the excerpt box (see links below)

    My blog archive page w/separate Read More buttons:
    http://dev.toawaken.org/wisdom/

    Example of blog archive page with Read More adjoining the excerpt text:
    https://nancylucina.com/blog

    • This reply was modified 9 years ago by rhythim.
    • This reply was modified 9 years ago by rhythim.
    Thread Starter rhythim

    (@rhythim)

    Steve, Atlaf, where did you go?? Can you follow up on this question please?

    Anybody else? I’ve seen tons of WordPress sites with the Read More link right in the excerpt, after, or instead of, the three dots{…} instead of as a separate button under the excerpt, so I can’t imagine this is that difficult to achieve…should be simple:-)

    • This reply was modified 9 years ago by rhythim.
    Thread Starter rhythim

    (@rhythim)

    Well I’m really disappointed that 2 responders started to help me configure this, but didn’t follow through when I needed a bit more information. Not sure why someone on this forum would give a partial response (partial for me, anyway, I need more clarity,) and then disappear. Very sad.

    on your homepage there is continue reading do u want to change that ?

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Where do I find the loop with’ is closed to new replies.