martyn
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Construction Landing Page] Double h1 in htmlSure! https://bit.ly/3suusEe
If you have a function is better, mine doesn’t work at all.
Thank you too.
Solved!Forum: Themes and Templates
In reply to: [GeneratePress] add alt via functionsMany thank’s!
Forum: Themes and Templates
In reply to: [GeneratePress] add alt via functionsNo, I didn’t, I prefer add the site title via function for seo…
Forum: Themes and Templates
In reply to: [GeneratePress] add alt via functionsIs
.soliloquy-container, .soliloquy-container * {height: inherit !important;}
the best solution?OK,Thank you.
Forum: Themes and Templates
In reply to: [GeneratePress] woocommerce sidebarDon’t kill me, I made a mistake. I didn’t delete a section of the code below (now is commented out to show you)
/* WRONG PART add_action('generate_woocommerce_sidebars','generate_construct_sidebars'); function generate_construct_sidebars() { get_sidebar('woocommerce'); } */ function arphabet_widgets_init() { register_sidebar( array( 'name' => 'WooCommerce Sidebar', 'id' => 'woocommerce_sidebar', 'before_widget' => '<div>', 'after_widget' => '</div>', 'before_title' => '<h4>', 'after_title' => '</h4>', ) ); } add_action( 'widgets_init', 'arphabet_widgets_init' ); /* Tom's code */ add_action( 'wp', function() { remove_action( 'woocommerce_sidebar', 'generate_construct_sidebars' ); add_action( 'woocommerce_sidebar', function() { get_sidebar( 'woocommerce' ); } ); } );
Solved.
Many thank’s!Forum: Themes and Templates
In reply to: [GeneratePress] woocommerce sidebarHi Tom,
The woo sidebar is registered;
I’ve copied and paste your function;
But the right-sidebar is ‘overwritten’ by woocommerce_sidebar, and disappeared in the widget menu too.
I don’t know, this is the ‘last step’: the sidebar-woocommerce.php code<?php if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } ?> <div class="inside-right-sidebar"> <?php do_action( 'generate_before_right_sidebar_content' ); if ( ! dynamic_sidebar( 'woocommerce_sidebar' ) ) { generate_do_default_sidebar_widgets( 'right-sidebar' ); } do_action( 'generate_after_right_sidebar_content' ); ?> </div> </div>
Ok,
Thank You!Forum: Themes and Templates
In reply to: [GeneratePress] woocommerce sidebarYes, because I need a dedicated sidebar for woocommerce.
The issue is the right sidebar (home, pages, posts) is disappeared and the woocommerce sidebar created is working.
I would know how to fix the function or php above to have 2 indipendent right sidebar (native and woocommerce) in generatepress.Ref. https://generatepress.com/forums/topic/how-do-i-add-a-custom-sidebar/#post-251055 but it doesn’t work
- This reply was modified 3 years, 10 months ago by martyn.
wcmp is light
Forum: Themes and Templates
In reply to: [GeneratePress] auto meta description page, single, productOk, thank you!
solvedHello…