Forum Replies Created
-
AuthorPosts
-
June 13, 2017 at 2:23 pm in reply to: Genesis connect for woocommerce causing category page not to display #207710
Jeffreydotfong
MemberAh, solved my problem!
Seems I had added an additional line to include the footer to my taxonomy.php file in genesis connect (why I cannot remember - will endeavour to remove this)
Amnesia strikes again!
June 13, 2017 at 2:17 pm in reply to: Genesis connect for woocommerce causing category page not to display #207709Jeffreydotfong
MemberInteresting! It seems to be a line I am using to load my custom footer. Getting this error:
Fatal error: Cannot redeclare load_front_page_footer() (previously declared in /home4/fastpac3/public_html/billow/wp-content/themes/Genesis_Child/functions.php:259) in /home4/fastpac3/public_html/billow/wp-content/plugins/genesis-connect-woocommerce/templates/taxonomy.php on line 37
Using these calls:
// Remove Footer http://www.billerickson.net/code/remove-genesis-footer/ remove_action('genesis_footer', 'genesis_do_footer'); remove_action('genesis_footer', 'genesis_footer_markup_open', 5); remove_action('genesis_footer', 'genesis_footer_markup_close', 15); //Call my custom footer add_action('genesis_footer', 'load_front_page_footer'); function load_front_page_footer() { get_footer('All'); /*Same footer as front page*/ }
Any insight would be greatly appreciated!
February 9, 2017 at 5:32 pm in reply to: Woocommerce and Genesis Connect: Are there templates for the ‘Cart’, ‘Checkout’ #200876Jeffreydotfong
MemberGreat, thanks Victor.
I'm running a bit of a weird system where I have a different header file and a different page template for each page so I will try this method.
Thanks,
Jeff
May 18, 2016 at 3:05 pm in reply to: Custom header for Date/home pages not loading once migrated #185867Jeffreydotfong
MemberHi Victor,
The file names were exact. I neglected to mention that I had a custom index header. I have solved the issue with this code in my index.php:
// Header for home and index pages singled out... add_action('genesis_header', 'load_project_page_header'); function load_project_page_header() { if (is_home() || is_date()) { get_header('Blog_home'); } else { get_header('index'); } }
Thanks for your help! Seems to be an issue with my installation of wordpress though.
Jeff
May 18, 2016 at 6:04 am in reply to: Custom header for Date/home pages not loading once migrated #185826Jeffreydotfong
MemberHi Victor,
Yes, I have that exact code.
The strangest bit is that it works on my locally hosted site, but not on the live server!
Jeff
Jeffreydotfong
MemberHaha, great. I won't be adding anymore actions without a new function then!
Jeffreydotfong
MemberAh actually, calling it in a custom function worked.
add_action('genesis_header', 'loadlandingheader'); function loadlandingheader() { get_template_part('Header','Landing'); }
How come I had to call it in a custom function to get it to sit inside the genesis() site-container?
Jeffreydotfong
MemberThanks Brad,
I tried to use get_template_part ('Header','Landing') but just got the same result: the header ends up outside the site-container created by the genesis() function. It seems my actions aren't actually hooking into the right place:
add_action('genesis_header', get_template_part('Header','Landing'));
By creating a custom function, do you mean re-creating the genesis() function? Or just using echo to pull in a particular header image - I was hoping I could use the same header for different page templates or the different headers for the same template...
-
AuthorPosts