Return to Support

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

Home Forums Graphene WordPress theme Support how to move 'continue reading' to right side & change the number of characters before

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #8667
    andrewjs18
    Member

    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?

    #41788
    andrewjs18
    Member

    any ideas?

    #41789
    Luko
    Member

    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?

    #41790
    andrewjs18
    Member
    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.

    #41791
    Luko
    Member

    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');

    #41792
    andrewjs18
    Member
    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?

    #41793
    Luko
    Member

    Yes. In child-theme folder…

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

    #41794
    andrewjs18
    Member

    thank you.

    #41795
    andrewjs18
    Member

    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/

    #41796
    Luko
    Member

    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”.

    #41797
    andrewjs18
    Member
    Quote:
    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”.

    works perfect.

    thank you, sir!

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

You must be logged in to reply to this topic.