Community Forums › Forums › Archived Forums › Design Tips and Tricks › Change position of Read More link
Tagged: css, Genesis content archives, read more
- This topic has 7 replies, 5 voices, and was last updated 11 years, 11 months ago by
dave_s.
-
AuthorPosts
-
October 26, 2014 at 3:56 pm #129320
senordeer
MemberHello, I have figured out how to style and change wording of the Read More link (when using the Content Archives settings in the Genesis theme settings section), but I would like to position the Read More link centered, beneath the text excerpt instead of directly after the wording. I have tried different styling with the .more-link in my CSS but can't get anything to work, I'm thinking it is just a CSS issue but any assistance would be greatly appreciated, page link:
http://blog.segretofinishes.comOctober 26, 2014 at 6:19 pm #129333andystitt829
MemberHi senordeer,
I don't think there's a way to get the Read More link on the next line just by using CSS. In this case, you may just want to go into the post editor and manually insert it where you want it by clicking the "Insert Read More tag" button.
Once that's done, then try the following CSS:
.more-link { display: block; text-align: center; }I hope that works for you!
Andy
October 26, 2014 at 8:47 pm #129356Elsa
MemberSenordeer and Andystitt829 actually it can be done!
Just make the code adjustments Andystitt829 suggested to a.more-link
So it should look like this:
a.more-link { padding:5px 20px; font-family:cinzel!important; font-size: 14px; letter-spacing:2px; color: #000; background:none; display:block; text-align: center; }
Elsa M ~ Wordpress web designer/developer
EMR Design Studio ~ Follow me on Twitter emrdesignstudioOctober 26, 2014 at 11:04 pm #129370Brad Dalton
ParticipantOr you could use PHP code to move the read more link to a new line and then center it using CSS.
October 27, 2014 at 12:35 pm #129462senordeer
MemberHey Brad thanks so much, I was sort of thinking about PHP, not my forte, do you have a little bit of direction on that? I have already added some php to the functions to change the text on the link:
add_filter( 'excerpt_more', 'genesischild_read_more_link' ); //* Modify the speak your mind title in comments add_filter( 'comment_form_defaults', 'sp_comment_form_defaults' ); function sp_comment_form_defaults( $defaults ) { $defaults['title_reply'] = __( 'Leave a Comment' ); return $defaults; }but that is all I have right now
October 28, 2014 at 5:08 am #129537Brad Dalton
ParticipantYes, posted 5 code snippets yesterday http://wpsites.net/web-design/move-the-read-more-link-position-to-the-next-line/
October 28, 2014 at 6:01 am #129551senordeer
MemberYes! That is perfect I am sorry I overlooked the link, this is exactly what I was looking for, your help is much appreciated!
December 21, 2014 at 2:19 pm #135024dave_s
ParticipantWas looking for an answer to this myself.
Thank you Brad.
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.