WordPress.org

Ready to get started?Download WordPress

Forums

Edit the <!--more--> tag to go to an exact position on the page? (6 posts)

  1. nick74
    Member
    Posted 4 years ago #

    Edit the <!--more--> tag to go to an exact position on the page?

    I am using 3.0. I know you can add some code to your themes funtion.php to make the more tag load a page at the very top but I'd like it to load the page scrolled down a bit.

    Is there a way to do this?

  2. Spencer Finnell
    Member
    Posted 4 years ago #

    By default it should load on the section of the page where you placed the <!--more--> tag. You want it to go further?

  3. nick74
    Member
    Posted 4 years ago #

    no i want it to a bit above the <!--more-->. Like an inch or two

  4. nick74
    Member
    Posted 4 years ago #

    bump

  5. nick74
    Member
    Posted 4 years ago #

    bump

  6. Gavin
    Member
    Posted 4 years ago #

    In your theme's stylesheet, paste the following:

    span[id^="more-"] {
    	display: block;
    	position: relative;
    	top: -160px;
    	}

    This will let you target the anchor placement with CSS. Fiddle with the '-160px' to find the right spacing for your site.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags