how to move 'continue reading' to right side & change the number of characters before
-
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?
any ideas?
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?
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.
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');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?
Yes. In child-theme folder…
And the 200 is the number of characters in excerpts, it can be changed…
thank you.
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/
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.