Dynamically changing logo on scroll function [closed]

I’m assuming the file you’re trying to display is located in your theme folder. You can use get_template_directory_uri to get the path of your currently activated theme’s root folder. If you’re looking to support child themes get_stylesheet_directory_uri() will look in the currently activated child theme’s folder if a child theme is in use. If you … Read more

Twenty seventeen theme dropdown menu issue

The solution is usually I use this to call the menu <?php wp_nav_menu( array( ‘theme_location’ => ‘top’, ‘menu_class’ => ‘nav-menu’, ‘fallback_cb’ => ‘tie_nav_fallback’ ) ); ?> with my HTML staff till twenty twelve if I remember but the new in seventeen that I should call the menu inside <div class=”main-navigation”>

Get a default customizeAction text for a section using Customizer JS API

You’re right. There’s currently no default value for the customizeAction param. You can add your own default value for all controls with something like this in PHP: add_action( ‘customize_controls_enqueue_scripts’, function() { wp_add_inline_script( ‘customize-controls’, sprintf( ‘wp.customize.Section.prototype.defaults.customizeAction = %s;’, wp_json_encode( __( ‘Customizing’, ‘default’ ) ) ) ); } ); This isn’t in core yet because the default … Read more