Community Forums › Forums › Design Tips and Tricks › How to change page-title.php formatting controls?
Tagged: change, conditional formating, Minimum theme, page-title
This topic contains 2 replies, has 2 voices, and was last updated by MM 2 months, 3 weeks ago.
-
AuthorPosts
-
February 21, 2013 at 2:14 pm #22043
Hi there,
On http://www.hayleywebb.com... (minimum theme) I’m trying to change page-title.php so the following happens:
On blog category pages > page-title = name of category
On singular pages > page-title = name of page (eg. Contact, About)
On blog post page > page-title = name of post title
Current page-title.php code is displayed below. Anyone know how to achieve that?
Thanks!
<?php
if ( is_home() ) {
echo ‘<div id=”page-title”><div class=”wrap”><p>’ . esc_html( get_bloginfo( ‘description’ ) ) . ‘</p></div></div>’;
}
elseif ( is_404() ) {
echo ‘<div id=”page-title”><div class=”wrap”><p>’ . __( ‘Ooops!’, ‘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’ ) . ‘</p></div></div>’;
}
elseif ( is_singular( ‘page’ ) ) {
echo ‘<div id=”page-title”><div class=”wrap”><p>’ . esc_html( get_bloginfo( ‘description’ ) ) . ‘</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’ ) . ‘</p></div></div>’;
}
else {
echo ‘<div id=”page-title”><div class=”wrap”><p>’ . esc_html( get_bloginfo( ‘description’ ) ) . ‘</p></div></div>’;
}February 27, 2013 at 9:01 am #23093I would like to know how to do this as well.
Hayley, I like the website so far. I have a couple of questions for you:
How did you go about changing the the home featured icons to the yoga icon, heart, email icon, etc.
Where can I find the Subscribe and Connect widget with all the social media icons.
Finally, how did you move the tagline header (Push your Limits. Embrace your Passion. Make things Happen.) beneath you main slider on the homepage?Thanks. Hopefully someone knows how to change the page title controls.
February 28, 2013 at 8:30 am #23266Hi Firstname_galo
Thanks and here’s quick answers:
1) Check out this thread:
2) Think the slider is just above the text in the appearance > widgets section.
Good luck!
-
AuthorPosts
You must be logged in to reply to this topic.