Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter rwisneske

    (@rwisneske)

    Hey thanks jameskoster for the recommendations. I’m going to just leave instructions in the description for the customer to contact the client with their desired length of steel cable. I just added a contact form in with the product display.

    But my question about the API Surcharge is how do set up the function to only surcharge one chosen product instead of all products?

    Thanks!

    I added the above to my functions.php and I changed the name “navigation” to “menu” but now the primary menu in mobile will not toggle when visited.

    <?php
    
    add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
    function theme_enqueue_styles() {
        wp_enqueue_style( 'storefront', get_template_directory_uri() . '/style.css' );
        wp_enqueue_style( 'storefront-child', get_stylesheet_directory_uri() . '/style.css',
            array('parent-style')
        );
    }
    
    add_action( 'init', 'custom_remove_footer_credit', 10 );
    function custom_remove_footer_credit () {
        remove_action( 'storefront_footer', 'storefront_credit', 20 );
        add_action( 'storefront_footer', 'custom_storefront_credit', 20 );
    }
    
    function custom_storefront_credit() {
        ?>
        <div class="site-info">
            ? <?php echo get_bloginfo( 'Simsolve' ) . ' ' . get_the_date( 'Y' ); ?>
        </div><!-- .site-info -->
        <?php
    }
    
    function storefront_primary_navigation() {
            ?>
        <nav id="site-navigation" class="main-navigation" role="navigation">
            <button class="menu-toggle"><?php _e( 'Menu', 'storefront' ); ?></button>
            <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
        </nav><!-- #site-navigation -->
        <?php
    }
    
    ?>
Viewing 2 replies - 1 through 2 (of 2 total)