how to move 'continue reading' to right side & change the number of characters before

  • Anonymous

    #8667

    hi,

    how can I move the ‘continue reading’ button to the right side of an article and change the number of characters before the ‘continue reading’ button is inserted?

    Anonymous

    #41788

    any ideas?

    Anonymous

    #41789

    Hy,

    For display it on the right side use this in your child-theme style.css

    .more-link {
    float:right;
    }

    Are you using excerpts or you put “more” link manually when editing post?

    Anonymous

    #41790
    Quote:
    Hy,

    For display it on the right side use this in your child-theme style.css

    .more-link {

    float:right;

    }

    Are you using excerpts or you put “more” link manually when editing post?

    works great, thanks. can that button be moved down closer to the dividing line that separates the article and tags?

    I’m using the automatic excerpts that the graphene offers, I believe.

    Anonymous

    #41791

    It can be moved down, but it wont be in the same place because position is depending on excerpt length. You can setup excerpt length with this function:

    function new_excerpt_length($length) {
    return 200;
    }
    add_filter('excerpt_length', 'new_excerpt_length');

    Anonymous

    #41792
    Quote:
    It can be moved down, but it wont be in the same place because position is depending on excerpt length. You can setup excerpt length with this function:

    function new_excerpt_length($length) {

    return 200;

    }

    add_filter(‘excerpt_length’, ‘new_excerpt_length’);

    does that go in the functions.php?

    Anonymous

    #41793

    Yes. In child-theme folder…

    And the 200 is the number of characters in excerpts, it can be changed…

    Anonymous

    #41794

    thank you.

    Anonymous

    #41795

    hmn, just tried the excerpt length and it doesn’t seem to be working.

    this is the code in my functions.php file for the child theme:

    <?php
    function new_excerpt_length($length) {
    return 700;
    }
    add_filter('excerpt_length', 'new_excerpt_length');
    ?>

    to be clear, I’m trying to adjust the article lengths on the front page on the blog: http://talkingbit.com/

    Anonymous

    #41796

    Ok. It’s my mistake.

    Please try with this code instead:

    function new_excerpt_length() {
    graphene_set_excerpt_length( 50 );
    }
    add_action('graphene_before_post_content', 'new_excerpt_length');

    Just to mention, it will work if you have nothing in excerpt field under edit post option, and in theme options you have checked “show excerpt on front page”.

Viewing 10 posts - 1 through 10 (of 11 total)

  • 1
  • 2
  • You must be logged in to reply to this topic.