Community Forums › Forums › Design Tips and Tricks › Strange design problem after upgrade
This topic contains 3 replies, has 2 voices, and was last updated by SoZo 3 months, 3 weeks ago.
-
AuthorPosts
-
January 26, 2013 at 8:02 pm #15219
Hi
After installing the latest updates of both WordPress and Genesis I noticed a strange design problem.
If you visit my site and click one of the category links displayed in the nav bar (such as ‘Before and After’) you are taken to a page with excerpts of all posts filed under that category. For certain categories (such as ‘Before and After’) I set up a sub-title so the category name is displayed ahead of the post title (for example; ‘Before and After: Chair Makeover’, rather than just ‘Chair Makeover’).
For some reason now there is an additional line which appears above this title which just includes the sub-title alone (kinda hard to explain though very clear if you visit this link: http://thepaintedhive.net/category/before-and-after/ ).
It seems okay in IE though is visible in Chrome and Firefox.
Anyone have any idea what may have caused this and how to correct it?
Thanks so much.
-
This topic was modified 3 months, 3 weeks ago by
SoZo. Reason: Made link a link
-
This topic was modified 3 months, 3 weeks ago by
SoZo. Reason: Made link a link
January 27, 2013 at 1:33 pm #15373January 27, 2013 at 4:23 pm #15427In my child functions file:
add_filter ('genesis_post_title_text', "hive_sub_category"); function hive_sub_category ($title) { if (is_category() ) { //change categories when published if (in_array(single_cat_title ("",false), array ("Before and After", "Clever Craft", "How To", "Furniture Rehab", "Room Makeovers", "Dining Room", "My Hive", "Master Bedroom", "Entryway", "Nursery", "Home Office", "Living Room", "DIY" ))) { return "<div class='hive_title_background'><div class='hive_post_title'>".single_cat_title ("",false).": ". $title."</div></div>"; } else { return "<div class='hive_title_background'><div class='hive_post_title'>".$title."</div></div>"; } } else { return "<div class='hive_title_background'><div class='hive_post_title'>".$title."</div></div>"; } }A friend helped me with it so I while I understand it a little I’m not completely across it.
January 28, 2013 at 9:28 pm #15874This is the best I could come up with
add_filter ('genesis_post_title_output', "hive_sub_category"); function hive_sub_category ($title) { if (is_category(array ("Before and After", "Clever Craft", "How To", "Furniture Rehab", "Room Makeovers", "Dining Room", "My Hive", "Master Bedroom", "Entryway", "Nursery", "Home Office", "Living Room", "DIY" ))) { return "<div class='hive_title_background'><div class='hive_post_title'>".single_cat_title ("",false).": ". $title."</div></div>"; } else { return "<div class='hive_title_background'><div class='hive_post_title'>".$title."</div></div>"; } }Gets rid of the double output but places it before the link
John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography
-
This topic was modified 3 months, 3 weeks ago by
-
AuthorPosts
You must be logged in to reply to this topic.