Community Forums › Forums › Archived Forums › Design Tips and Tricks › Minimum Theme: Category Titles and Images
Tagged: minimum
- This topic has 6 replies, 2 voices, and was last updated 10 years, 7 months ago by johnstrubel.
-
AuthorPosts
-
September 23, 2013 at 10:02 am #63853johnstrubelMember
Hi: I am hoping someone can help me. I need some assistance on how I can make a couple changes to my site. I feel confident it's a small change (and maybe something I am overlooking), but I am frustrated that I can't find it.
If you will, look at the following pages:
http://johnstrubel.com/category/print-bylines/
http://johnstrubel.com/category/audio/
I can't figure out how (or where) to modify the text that defines the category. Right now they all read "From the Blog." The second piece is I'd like to add a image (similar to any "page" on the site).
Is there anyone who has a tutorial or can offer a suggestion?
Sincerely,
John
http://www.johnstrubel.comSeptember 23, 2013 at 3:36 pm #63896Brad DaltonParticipantHi John
I tried to take a look at your site but encountered a server error:
Did you modify any PHP code in your theme files?
September 23, 2013 at 5:30 pm #63907johnstrubelMemberHi Brad:
I may have been working on a solution at the time. Can you take a look again?
Thanks for your help.
John
September 24, 2013 at 9:11 am #63971Brad DaltonParticipantPlease clarify:
The second piece is I’d like to add a image (similar to any “page” on the site)
September 24, 2013 at 10:33 am #63985johnstrubelMemberHi Brad:
Thanks again! Here is an update: My page-title.php file 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_category( 'blog' ) || 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>';
}
elseif ( is_author() || is_category() && !is_category( 'print-bylines' ) || is_date() || is_search() || is_singular() || is_tag() ) {
echo '<div id="page-title"><div class="wrap"><p>' . __( 'Print Bylines', 'minimum' ) . '' . __( 'Subscribe Now', 'minimum' ) . '</p></div></div>';
}
elseif ( is_author() || is_category() && !is_category( 'audio' ) || is_date() || is_search() || is_singular() || is_tag() ) {
echo '<div id="page-title"><div class="wrap"><p>' . __( 'Voices Podcast', 'minimum' ) . '' . __( 'Subscribe Now', 'minimum' ) . '</p></div></div>';
}
elseif ( is_author() || is_category() && !is_category( 'sports-journalism' ) || is_date() || is_search() || is_singular() || is_tag() ) {
echo '<div id="page-title"><div class="wrap"><p>' . __( 'Sports Journalism', 'minimum' ) . '' . __( 'Subscribe Now', 'minimum' ) . '</p></div></div>';
}
elseif ( is_author() || is_category() && !is_category( 'video' ) || is_date() || is_search() || is_singular() || is_tag() ) {
echo '<div id="page-title"><div class="wrap"><p>' . __( 'Video', '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>';
}The problem is, when you click on the categories -- blog, print bylines, podcast -- from the top of the homepage, the titles are displaying on the wrong pages. Any thoughts?
To clarify on the image request, I can add a static image at the top of my "pages" ( i.e. -- http://johnstrubel.com/about-me/ or http://johnstrubel.com/contact/). I'd like to be able to do this for the categories too (i.e. -- http://johnstrubel.com/category/blog/, http://johnstrubel.com/category/print-bylines/ and http://johnstrubel.com/category/audio/). Does that make sense?
Any help would be greatly appreciated!
Sincerely,
John
September 24, 2013 at 12:02 pm #63993Brad DaltonParticipantTo add images to categories you can simply add the HTML for the image to your category archive http://wpsites.net/web-design/style-archive-title-description-beginners-guide/#More_Ways_To_Style_Your_Archive_Intro_Area
Also check out this post http://sridharkatakam.com/set-custom-site-tagline-right-text-different-pages-minimum-pro/
September 24, 2013 at 3:41 pm #64024johnstrubelMemberThanks, Brad. Unfortunately these are not what I was looking for.
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.