WordPress.org

Ready to get started?Download WordPress

Forums

Add 1 line space before Read the rest <!--more--> (7 posts)

  1. mealto
    Member
    Posted 5 years ago #

    I can't seem to find the file to add a after the <!--more--> (read the rest) file in the themes area. Is this file located in WordPress itself? If so, what file would it be? On the home page, we have set WordPress to show only anything before <!--more--> and now we want to add 1 line space before the "Read the rest" line.

  2. moshu
    Member
    Posted 5 years ago #

    text text text

    <!--more-->

    text text text
    ================
    it works for me like this, when inserting it, but I have to add I never use the visual editor thing.

  3. Dgold
    Member
    Posted 5 years ago #

    Same here. I just type a hard-return in the Write Post area, before I put the <!--more--> code.

  4. mealto
    Member
    Posted 5 years ago #

    By doing that, users will see more spaces where the hard return was set around the <!-- more --> tag in the full page. In addition, that will also happen when the feed is pulled to a reader.

    It's just not a good idea to mess with the content body. Someone must know the whereabouts of the file that controls this. Anyone?

  5. csleh
    Member
    Posted 5 years ago #

    Can you give the "more" or "read more" a class? or set to an unused tag, like h6? then in the css add padding or margin as needed.

    best to use something you have control over.

  6. moshu
    Member
    Posted 5 years ago #

    Why don't you read the docs before jumping in...?
    Customizing_the_Read_More

  7. Dgold
    Member
    Posted 5 years ago #

    Sure enough, you could try that technique

    You can style the text in the tag, too.

    <?php the_content('<span class="moretext">...on the edge of
    your seat? Click here to solve the mystery.</span>'); ?>

    Then set the moretext class in your style.css style sheet to whatever you want.

    Nifty

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.