Home › Forums › WordPress Themes – Premium › Lavish Pro › Can you show me how to move the "Social icons" below the main top menu?
Tagged: Lavish theme, social icons
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
Hello Suchil,
Thanks so much for your detailed reply, that’s exactly what I was looking for 🙂
Best regards,
Clive
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
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
With our premium themes, we offer access to site documentation, video tutorials and timely support. Even if you have just started on WordPress, our support staff have the patience to help you create appealing sites gracefully.
Company
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.To find out more, including how to control cookies, see here: Privacy Policy
© Copyright © 2023 Styled Themes. All Right Reserved.