Forum Replies Created
Viewing 3 posts - 1 through 3 (of 3 total)
-
AuthorPosts
-
April 7, 2018 at 8:55 am in reply to: Site container is empty, where do I need to add the action in order to fix it? #218732
mkbeectrl
MemberI have solved it the following way:Instead of adding my acf content like this:
add_action('genesis_after_header', 'wooctrl_landing_header'); add_action('genesis_entry_header', 'wooctrl_so_simple_header'); add_action('genesis_after_entry', 'wooctrl_przek1_content');
I should do:
add_action('genesis_loop', 'wooctrl_landing_header'); add_action('genesis_loop', 'wooctrl_so_simple_header'); add_action('genesis_loop', 'wooctrl_przek1_content');
I was wrong, it is still not solved
March 7, 2018 at 3:15 pm in reply to: Site container is empty, where do I need to add the action in order to fix it? #217466mkbeectrl
MemberOh common, there is no such things like impossible 🙂
I have all remove actions in one place, maybe something will occur to you if you take a look.Are you familiar with a hook or function the creates that site-container div? It will be enough for me to find the issue I guess.
Here are the global changes to the theme:
// Remove Skip Links remove_action('genesis_before_header', 'genesis_skip_links', 5); // Dequeue Skip Links Script add_action('wp_enqueue_scripts', 'genesis_wooctrl_dequeue_skip_links'); function genesis_wooctrl_dequeue_skip_links() { wp_dequeue_script('skip-links'); } //remove seo and archive settings remove_theme_support( 'genesis-seo-settings-menu' ); remove_action( 'admin_menu', 'genesis_add_inpost_seo_box' ); remove_action( 'admin_init', 'genesis_add_taxonomy_archive_options' ); // Force full width content layout add_filter('genesis_site_layout', '__genesis_return_full_width_content'); // Remove site header elements remove_action( 'genesis_header', 'genesis_header_markup_open', 5 ); remove_action( 'genesis_header', 'genesis_header_markup_close', 15 ); remove_action( 'genesis_header', 'genesis_do_header' ); // Remove navigation //remove_theme_support( 'genesis-menus' ); // Remove breadcrumbs remove_action('genesis_before_loop', 'genesis_do_breadcrumbs'); // Remove footer widgets remove_action('genesis_before_footer', 'genesis_footer_widget_areas'); // Remove site footer elements 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 ); remove_action( 'genesis_after_header', 'genesis_do_nav' ); // Remove page title remove_action('genesis_entry_header', 'genesis_do_post_title'); // Remove site inner wrap add_filter('genesis_structural_wrap-site-inner', '__return_empty_string'); // Remove edit link add_filter('genesis_edit_post_link', '__return_false'); //Contact form 7 add_filter('wpcf7_form_elements', function($content) { $content = preg_replace('/<(span).*?class="\s*(?:.*\s)?wpcf7-form-control-wrap(?:\s[^"]+)?\s*"[^\>]*>(.*)<\/\1>/i', '\2', $content); return $content; }); // Remove Header Right widget area unregister_sidebar( 'header-right' ); // Reposition the secondary navigation menu. remove_action( 'genesis_after_header', 'genesis_do_subnav' ); add_action( 'genesis_footer', 'genesis_do_subnav', 5 ); add_action('wp_print_scripts', 'rrd_remove_cf7_js'); function rrd_remove_cf7_js() { if ( function_exists( 'wpcf7_enqueue_scripts' ) ) { if ( !is_page('kontakt')) { //replace the slug if needed wp_deregister_script('contact-form-7'); } } } add_action('wp_print_styles', 'rrd_remove_cf7_css'); function rrd_remove_cf7_css() { if ( function_exists( 'wpcf7_enqueue_styles' ) ) { wp_deregister_style('contact-form-7'); } } //Remove result count remove_action( 'woocommerce_before_shop_loop', 'woocommerce_result_count', 20 );
March 7, 2018 at 7:07 am in reply to: Site container is empty, where do I need to add the action in order to fix it? #217424mkbeectrl
Memberdo use Genesis Sample for my them, but somehow I made a mistake and the content renders like this:
<div class=„site-container”></div>
<header></header>
<div class=„site-inner”>content </div>
-
AuthorPosts
Viewing 3 posts - 1 through 3 (of 3 total)