Forum Replies Created
-
AuthorPosts
-
January 8, 2013 at 5:13 pm in reply to: Lost ALL of my Agency formatting & widgets on Genesis 1.9 upgrade #10487robskidmoreMember
Adam,
Glad I could help. I think the Studiopress team is probably in over their heads right now. 🙂 Just check the comments on Brian Gardner's post.
Anyway. I'm glad you got it fixed.
January 8, 2013 at 10:43 am in reply to: Lost ALL of my Agency formatting & widgets on Genesis 1.9 upgrade #10383robskidmoreMemberCheck the name of the folder that your child theme is in. If there is a space in it ( eg. My Theme ) remove the space ( MyTheme ).
I had a similar problem. Everything on the child theme worked except the CSS. After hours of frustration I finally figured it out. Don't ask my why it happened.
Anyway hope that helps.
Rob
robskidmoreMemberSolved!!!!!!
Like most things the answer was rather simple.
I removed the writing.php and added this code to my single.php.
if( is_singular() && in_category('writing')) {add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );
remove_action( 'genesis_after_post', 'genesis_do_author_box_single' );
remove_action ( 'genesis_after_header', 'minimum_page_title');
remove_action( 'genesis_after_header', 'genesis_do_nav' );
remove_action( 'genesis_after_header', 'genesis_do_subnav' );
remove_action( 'genesis_after_header', 'genesis_do_breadcrumbs' );
remove_action( 'genesis_before_footer', 'genesis_footer_widget_areas' );
remove_action( 'genesis_footer', 'minimum_custom_footer', 6 );
remove_action( 'genesis_footer', 'genesis_footer_markup_open', 5 );
remove_action( 'genesis_footer', 'genesis_do_footer' );
remove_action( 'genesis_footer', 'genesis_footer_markup_close', 15 );}
Thanks friends. Couldn't have done it without you.
🙂
robskidmoreMemberHey guys thanks for the responses.
I probably should have made it clear what code I was trying to add to my template. This is what I am trying to do.
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );
remove_action( 'genesis_after_post', 'genesis_do_author_box_single' );
remove_action ( 'genesis_after_header', 'minimum_page_title');
remove_action( 'genesis_after_header', 'genesis_do_nav' );
remove_action( 'genesis_after_header', 'genesis_do_subnav' );
remove_action( 'genesis_after_header', 'genesis_do_breadcrumbs' );
remove_action( 'genesis_before_footer', 'genesis_footer_widget_areas' );
remove_action( 'genesis_footer', 'minimum_custom_footer', 6 );
remove_action( 'genesis_footer', 'genesis_footer_markup_open', 5 );
remove_action( 'genesis_footer', 'genesis_do_footer' );
remove_action( 'genesis_footer', 'genesis_footer_markup_close', 15 );
I've tried variations of both of your suggestions.First
I added this to the funtions.php still trying to use my writing.php template.
/** Add the custom writing template */add_action( ‘genesis_after_header’, ‘minimum_writing_category’, 15 );
function minimum_writing_category() {
if (is_single() && in_category ( ‘writing’)) {
require_once( get_stylesheet_directory() . ‘/writing.php’ );Â }}
Did not work. It removed all the changes that I had made with my original code.
Second
I tried adding the whole thing to my functions.php
/** Add the custom writing template */add_action( ‘genesis_after_header’, ‘minimum_writing_category’, 15 );
function minimum_writing_category() {
if (is_single() && in_category ( ‘writing’)) {
...My code... Â }}
No luck.
Third
I removed the the first two attempts and added this to single.php (   in my child theme 🙂   )
if (in_category ( ‘writing’)) {remove_action( 'genesis_post_content', 'genesis_do_post_content');
add_action( 'genesis_post_content', 'writing_content_template');function writing_content_template () { ...My code... }}
Still nothing
Not sure where I'm going wrong. I got the best results from my original code it was just calling two templates and so I had duplicate content on the page.
Appreciate your help guys.
Any other suggestions.
-
AuthorPosts