Community Forums › Forums › Archived Forums › Design Tips and Tricks › Center Blog Title – Minimum
Tagged: minimum
- This topic has 6 replies, 3 voices, and was last updated 13 years, 1 month ago by
KABYT.
-
AuthorPosts
-
June 28, 2013 at 10:39 am #48226
KABYT
MemberI deleted the subscribe button by adding this code to the editor.
.page-title-button {
display: none;
}I'm trying to now center my page title and it doesn't seem to be working. Any help would be great.
http://www.kabyt.comJune 30, 2013 at 1:46 pm #48567Stewart
MemberHi,
Try adding the text-align:center; to line 489 of your style.css:
#page-title p {
text-align: center;Hope this helps
Stewart
WordPress Developer – Need help upgrading to Genesis 2.0? – My Blog
Follow me on TwitterJune 30, 2013 at 5:38 pm #48588KABYT
MemberThat doesn't work. I think it has something to do with the fact that the subscribe button area is still in the code and not displayed.
July 1, 2013 at 6:24 am #48652Stewart
MemberOk, Instead of hiding the subscribe now button try removing it from the code, I believe with the minimum theme the code that actually outputs the subscribe button is in the page-title.php file.
Once you have removed the code, then try centering the text again.
Stewart
WordPress Developer – Need help upgrading to Genesis 2.0? – My Blog
Follow me on TwitterJuly 1, 2013 at 3:57 pm #48748KABYT
MemberI see it in the page-title.php file. Do you know what it should look like after?
Here is what it currently looks like...
<?php
if ( is_home() ) {
echo '<div id="page-title"><div class="wrap"><p>' . esc_html( get_bloginfo( 'description' ) ) . '' . __( 'Subscribe Now', 'minimum' ) . '</p></div></div>';
}
elseif ( is_404() ) {
echo '<div id="page-title"><div class="wrap"><p>' . __( 'Ooops!', 'minimum' ) . '' . __( 'Subscribe Now', 'minimum' ) . '</p></div></div>';
}
elseif ( is_post_type_archive( 'portfolio' ) || is_singular( 'portfolio') ) {
echo '<div id="page-title"><div class="wrap"><p>' . __( 'From the Portfolio', 'minimum' ) . '' . __( 'Subscribe Now', 'minimum' ) . '</p></div></div>';
}
elseif ( is_singular( 'page' ) ) {
echo '<div id="page-title"><div class="wrap"><p>' . esc_html( get_bloginfo( 'description' ) ) . '' . __( 'Subscribe Now', 'minimum' ) . '</p></div></div>';
}
elseif ( is_author() || is_category() || is_date() || is_search() || is_singular() || is_tag() ) {
echo '<div id="page-title"><div class="wrap"><p>' . __( 'From the Blog', 'minimum' ) . '' . __( 'Subscribe Now', 'minimum' ) . '</p></div></div>';
}
else {
echo '<div id="page-title"><div class="wrap"><p>' . esc_html( get_bloginfo( 'description' ) ) . '' . __( 'Subscribe Now', 'minimum' ) . '</p></div></div>';
}July 1, 2013 at 4:48 pm #48755Doak Heggeness
MemberThere is a
"that should not be there as well as the__( 'Subscribe Now', 'Minimum' )So it should look like this I believe.
if ( is_home() ) { echo '<div id="page-title"><div class="wrap"><p>' . esc_html( get_bloginfo( 'description' ) ) . '</p></div></div>'; }
Doak Heggeness, WordPress Development | Website
July 1, 2013 at 8:54 pm #48781KABYT
MemberIs that for all the entries?
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.