StyledThemes

Can you show me how to move the "Social icons" below the main top menu?

Home Forums WordPress Themes – Premium Lavish Pro Can you show me how to move the "Social icons" below the main top menu?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #48016
    Clive Struver
    Participant

    Hi,

    I would like to have the social icons underneath the main menu rather than on top of it. Please can you give me some guidance as to which files need editing?

    Thanks,

    Clive

    • This topic was modified 6 years, 4 months ago by Clive Struver.
    #48022
    Clive Struver
    Participant

    Hello Suchil,

    Thanks so much for your detailed reply, that’s exactly what I was looking for 🙂

    Best regards,

    Clive

    #48158
    Clive Struver
    Participant

    Hello again,

    Sorry, thought that I’fd cracked it but clearly did not understand the instructions fully.

    Am I correct in assuming that I simply create a new template_funtions.php file with the just the contents of the second section above (without any ?>php etc), and place this file in my child theme? If so, I think the issue is wher eI put the file. You mention that I need to uplicate the template_functions.php file in the child theme along with the root and preeceding folders. This last bit is what I think is the issue. Do you mean thatI copyall of the folders, and if so do I leave the names as lavish-pro or change them to lavish-pro-child?

    Thanks again.

    Clive

    #48230
    Sushil Adhikari
    Moderator

    Dear Clive,

    Please paste this code on child theme funtions.php file to move below the header menu:

    /**
    * @return Remove hook
    */
    add_action( 'wp_head', 'fr_child_remove_action' );
    function fr_child_remove_action() {
        remove_action( 'lr_header', 'lr_header_fnc' );
    }
    
    /**
    * @return add header function to lr_header hook
    * 
    */
    add_action( 'lr_header', 'fr_child_header_func' );
    function fr_child_header_func() {
        $header_style = get_theme_mod('header_style','one');
         GLOBAL $post; 
        if( get_post_meta( $post->ID, '_lavish_hide-theme-header', true ) == 'on' ) { 
            $hide_header_class = "fr-lc-hide-header-section";
        } else {
            $hide_header_class = "";
        }
        switch ($header_style) {
            case 'two':
                $header_type = 'class="lavish_header header_one '.$hide_header_class.'"'; ?>
                    <div <?php echo $header_type; ?>><!--Header Starts Here-->
                         <div class="lavish_head">
                        <div class="container">
                        <?php logo_output(); ?>
                        <?php menu_output('navmenu');?>
    
                        </div>
                         
                        </div>
                        <?php lr_social_icons_top_fnc('one'); ?>
                        <?php search_form_display(); ?>
                        <?php responsive_menu_output(); ?>
                    </div>
                    <?php           
                break;
            case 'one':
                $header_type = 'class="lavish_header header_two '.$hide_header_class.'"'; ?>
    
                    <div <?php echo $header_type; ?>><!--Header Starts Here-->
                        
                        <div class="lavish_head">
                        <div class="container">
                        <?php logo_output(); ?>
                        <?php menu_output('navmenu');?>
                        
                        </div>
                         
                        </div>
                        <?php lr_social_icons_top_fnc('two'); ?>
                        <?php search_form_display(); ?>
                        <?php responsive_menu_output(); ?>
                    </div>
                    <?php
                break;
    
        }
    }

    Note: Please go on editing file only if you are technically sound on WordPress, otherwise you will be facing php error. and one more things you need adjust design by yourself.

    Thanks

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.