Saturday, July 2, 2022
HomeWordPress DevelopmentDisguise High navigation menu with PHP on a web page template

Disguise High navigation menu with PHP on a web page template


i am utilizing WordPress/Divi and WCFM (market) and i want to cover the navigation menu on the Retailer Vendor’s Web page, that has no ID as a result of is a web page generated from a php template web page.
Are you able to assist me with the right code to cover the navbar at this template?

Web page at subject : https://www.sanpedronline.cl/store/atacamabreak/

That is the shop distributors web page template
Thanks upfront!!

<?php
/**
 * The Template for displaying retailer.
 *
 * @bundle WCfM Markeplace Views Retailer
 *
 * For edit coping this to yourtheme/wcfm/retailer 
 *
 */

if ( ! outlined( 'ABSPATH' ) ) exit; // Exit if accessed immediately

international $WCFM, $WCFMmp;

$wcfm_store_url    = wcfm_get_option( 'wcfm_store_url', 'retailer' );
$wcfm_store_name   = apply_filters( 'wcfmmp_store_query_var', get_query_var( $wcfm_store_url ) );
if ( empty( $wcfm_store_name ) ) return;
$seller_info       = get_user_by( 'slug', $wcfm_store_name );
if( !$seller_info ) return;

$store_user        = wcfmmp_get_store( $seller_info->ID );
$store_info        = $store_user->get_shop_info();

$store_sidebar_pos = isset( $WCFMmp->wcfmmp_marketplace_options['store_sidebar_pos'] ) ? $WCFMmp->wcfmmp_marketplace_options['store_sidebar_pos'] : 'left';

$wcfm_store_wrapper_class = apply_filters( 'wcfm_store_wrapper_class', '' );

$wcfm_store_color_settings = get_option( 'wcfm_store_color_settings', array() );
$mob_wcfmmp_header_background_color = ( isset($wcfm_store_color_settings['header_background']) ) ? $wcfm_store_color_settings['header_background'] : '#3e3e3e';

get_header( 'store' );
?>

<?php if( $WCFMmp->wcfmmp_vendor->is_store_sidebar() && ($store_sidebar_pos != 'left' ) ) { ?>
    <type>
        #wcfmmp-store .right_side{float:left !vital;}
        #wcfmmp-store .left_sidebar{float:proper !vital;}
    </type>
<?php } ?>
<type>
@media display screen and (max-width: 480px) {
    #wcfmmp-store .header_right {
        background: <?php echo esc_attr($mob_wcfmmp_header_background_color); ?>;
    }
}
</type>        
<?php //do_action( 'woocommerce_before_main_content' ); ?>
<?php echo '<div id="main" class="content-area"><primary id="primary" class="site-main" position="primary">'; ?>
<?php do_action( 'wcfmmp_before_store', $store_user->information, $store_info ); ?>

<div id="wcfmmp-store" class="wcfmmp-single-store-holder <?php echo esc_attr($wcfm_store_wrapper_class); ?>">
    <div id="wcfmmp-store-content" class="wcfmmp-store-page-wrap woocommerce" position="primary">
            
        <?php $WCFMmp->template->get_template( 'retailer/wcfmmp-view-store-banner.php', array( 'store_user' => $store_user, 'store_info' => $store_info ) ); ?>
        
        <?php 
        if( apply_filters( 'wcfmmp_is_allow_legacy_header', false ) ) {
            $WCFMmp->template->get_template( 'retailer/legacy/wcfmmp-view-store-header.php', array( 'store_user' => $store_user, 'store_info' => $store_info ) );
        } else {
            $WCFMmp->template->get_template( 'retailer/wcfmmp-view-store-header.php', array( 'store_user' => $store_user, 'store_info' => $store_info ) );
        }
        ?>

        <?php do_action( 'wcfmmp_after_store_header', $store_user->information, $store_info ); ?>
            
    <div class="body_area">
    
      <?php 
            if( !apply_filters( 'wcfmmp_is_allow_mobile_sidebar_at_bottom', true ) ) {
                $WCFMmp->template->get_template( 'retailer/wcfmmp-view-store-sidebar.php', array( 'store_user' => $store_user, 'store_info' => $store_info ) );
            }
            ?>
            
            <div class="rgt right_side <?php if( !$WCFMmp->wcfmmp_vendor->is_store_sidebar() ) echo 'right_side_full'; ?>">
                <div id="tabsWithStyle" class="tab_area">
                    
                    <?php do_action( 'wcfmmp_before_store_tabs', $store_user->information, $store_info ); ?>
                    
                    <?php $WCFMmp->template->get_template( 'retailer/wcfmmp-view-store-tabs.php', array( 'store_user' => $store_user, 'store_info' => $store_info, 'store_tab' => $store_tab ) ); ?>
                    
                    <?php do_action( 'wcfmmp_after_store_tabs', $store_user->information, $store_info ); ?>
                    
                    <?php 
                        swap( $store_tab ) {
                            case 'about':
                                $WCFMmp->template->get_template( 'retailer/wcfmmp-view-store-about.php', array( 'store_user' => $store_user, 'store_info' => $store_info ) );
                                break;
                                
                            case 'insurance policies':
                                $WCFMmp->template->get_template( 'retailer/wcfmmp-view-store-policies.php', array( 'store_user' => $store_user, 'store_info' => $store_info ) );
                                break;
                                
                            case 'opinions':
                                $WCFMmp->template->get_template( 'retailer/wcfmmp-view-store-reviews.php', array( 'store_user' => $store_user, 'store_info' => $store_info ) );
                                break;
                                
                            case 'followers':
                                $WCFMmp->template->get_template( 'retailer/wcfmmp-view-store-followers.php', array( 'store_user' => $store_user, 'store_info' => $store_info ) );
                                break;
                                
                            case 'followings':
                                $WCFMmp->template->get_template( 'retailer/wcfmmp-view-store-followings.php', array( 'store_user' => $store_user, 'store_info' => $store_info ) );
                                break;
                                
                          case 'articles':
                                $WCFMmp->template->get_template( 'retailer/wcfmmp-view-store-articles.php', array( 'store_user' => $store_user, 'store_info' => $store_info ) );
                                break;
                                
                            default:
                                $WCFMmp->template->get_template( apply_filters( 'wcfmmp_store_default_template', apply_filters( 'wcfmp_store_default_template', 'retailer/wcfmmp-view-store-products.php', $store_tab ), $store_tab ), array( 'store_user' => $store_user, 'store_info' => $store_info ), '', apply_filters( 'wcfmp_store_default_template_path', '', $store_tab ) );
                                break;
                        }   
                    ?>
                    
                </div><!-- .tab_area -->
            </div><!-- .right_side -->
            
            <?php 
            if( apply_filters( 'wcfmmp_is_allow_mobile_sidebar_at_bottom', true ) ) {
                $WCFMmp->template->get_template( 'retailer/wcfmmp-view-store-sidebar.php', array( 'store_user' => $store_user, 'store_info' => $store_info ) );
            }
            ?>
             
            <div class="spacer"></div>
    </div><!-- .body_area -->

    <div class="wcfm-clearfix"></div>
    </div><!-- .wcfmmp-store-page-wrap -->
    <div class="wcfm-clearfix"></div>
</div><!-- .wcfmmp-single-store-holder -->

<div class="wcfm-clearfix"></div>

<?php do_action( 'wcfmmp_after_store', $store_user->information, $store_info ); ?>
<?php //do_action( 'woocommerce_after_main_content' ); ?>
<?php echo '</primary></div>'; ?>
<script>
jQuery(doc).prepared(operate($) {
    $('#tab_links_area').discover('a').every(operate() {
        $(this).off('click on').on('click on', operate() {
            window.location.href = $(this).attr('href');
        });
    });
});
</script>
<?php get_footer( 'store' ); ?>

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments