Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter happilyevent

    (@happilyevent)

    Any help?

    Thread Starter happilyevent

    (@happilyevent)

    <?php
    /**
     * Storefront hooks
     *
     * @package storefront
     */
    
    /**
     * General
     *
     * @see  storefront_header_widget_region()
     * @see  storefront_get_sidebar()
     */
    add_action( 'storefront_before_content', 'storefront_header_widget_region', 10 );
    add_action( 'storefront_sidebar', 'storefront_get_sidebar', 10 );
    
    /**
     * Header
     *
     * @see  storefront_skip_links()
     * @see  storefront_secondary_navigation()
     * @see  storefront_site_branding()
     * @see  storefront_primary_navigation()
     */
    add_action( 'storefront_header', 'storefront_header_container', 0 );
    add_action( 'storefront_header', 'storefront_skip_links', 5 );
    add_action( 'storefront_header', 'storefront_site_branding', 20 );
    add_action( 'storefront_header', 'storefront_secondary_navigation', 30 );
    add_action( 'storefront_header', 'storefront_header_container_close', 41 );
    add_action( 'storefront_header', 'storefront_primary_navigation_wrapper', 42 );
    add_action( 'storefront_header', 'storefront_primary_navigation', 50 );
    add_action( 'storefront_header', 'storefront_primary_navigation_wrapper_close', 68 );

    So, what can I do now? 🙂

    Thread Starter happilyevent

    (@happilyevent)

    <?php echo do_shortcode(‘[metaslider id=”606″]’); ?>

    <div id=”page” class=”hfeed site”>
    <?php do_action( ‘storefront_before_header’ ); ?>

    <header id=”masthead” class=”site-header” role=”banner” style=”<?php storefront_header_styles(); ?>”>

    <?php
    /**
    * Functions hooked into storefront_header action
    *
    * @hooked storefront_header_container – 0
    * @hooked storefront_skip_links – 5
    * @hooked storefront_social_icons – 10
    * @hooked storefront_site_branding – 20
    * @hooked storefront_secondary_navigation – 30
    * @hooked storefront_product_search – 40
    * @hooked storefront_header_container_close – 41
    * @hooked storefront_primary_navigation_wrapper – 42
    * @hooked storefront_primary_navigation – 50
    * @hooked storefront_header_cart – 60
    * @hooked storefront_primary_navigation_wrapper_close – 68
    */
    do_action( ‘storefront_header’ );
    ?>

    Okay, as you can see I found it and the do_shortcode is at the top of the code. How can I put it inside the do_action storefront header?

    • This reply was modified 5 years, 6 months ago by happilyevent.
    Thread Starter happilyevent

    (@happilyevent)

    No 🙁 I released the website so you can see it. The slides are above the logo but I want them to be shown next to the logo.

    Thread Starter happilyevent

    (@happilyevent)

    Can you check the website again please? I did something 😀

    That’s a Storechild Child Theme.

    <?php
    /**
     * The header for our theme.
     *
     * Displays all of the <head> section and everything up till <div id="content">
     *
     * @package storefront
     */
    
    ?><!doctype html>
    <html <?php language_attributes(); ?>>
    <head>
    <meta charset="<?php bloginfo( 'charset' ); ?>">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2.0">
    <link rel="profile" href="http://gmpg.org/xfn/11">
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
    
    <?php wp_head(); ?>
    </head>
    
    <body <?php body_class(); ?>>
    
    <?php wp_body_open(); ?>
    
    <?php do_action( 'storefront_before_site' ); ?>
    
    <?php echo do_shortcode('[metaslider id="606"]'); ?>
    
    <div id="page" class="hfeed site">
    	<?php do_action( 'storefront_before_header' ); ?>
    
    	<header id="masthead" class="site-header" role="banner" style="<?php storefront_header_styles(); ?>">
    
    		<?php
    		/**
    		 * Functions hooked into storefront_header action
    		 *
    		 * @hooked storefront_header_container                 - 0
    		 * @hooked storefront_skip_links                       - 5
    		 * @hooked storefront_social_icons                     - 10
    		 * @hooked storefront_site_branding                    - 20
    		 * @hooked storefront_secondary_navigation             - 30
    		 * @hooked storefront_product_search                   - 40
    		 * @hooked storefront_header_container_close           - 41
    		 * @hooked storefront_primary_navigation_wrapper       - 42
    		 * @hooked storefront_primary_navigation               - 50
    		 * @hooked storefront_header_cart                      - 60
    		 * @hooked storefront_primary_navigation_wrapper_close - 68
    		 */
    		do_action( 'storefront_header' );
    		?>
    
    	</header><!-- #masthead -->
    
    	<?php
    	/**
    	 * Functions hooked in to storefront_before_content
    	 *
    	 * @hooked storefront_header_widget_region - 10
    	 * @hooked woocommerce_breadcrumb - 10
    	 */
    	do_action( 'storefront_before_content' );
    	?>
    
    	<div id="content" class="site-content" tabindex="-1">
    		<div class="col-full">
    
    		<?php
    		do_action( 'storefront_content_top' );
    

    That’s the current code for “header.php”,

    I added “<?php echo do_shortcode(‘[metaslider id=”606″]’); ?>”

    • This reply was modified 5 years, 6 months ago by happilyevent.
    • This reply was modified 5 years, 6 months ago by happilyevent.
    • This reply was modified 5 years, 6 months ago by happilyevent.
Viewing 5 replies - 1 through 5 (of 5 total)