- This topic has 1 reply, 2 voices, and was last updated 7 years, 1 month ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Home › Forums › WordPress Themes – Premium › Circumference › missing divs in 5.0.0 header
Hi, I believe there are a few *<div* missing from the header.php in the latest release. This code below works, but I added the *<div* before the *class=”cr-secondary-menu”* in each.
<?php $pagewidth = get_theme_mod( ‘page_width’, ‘default’ );
switch ($pagewidth) {
case “default” :
echo ‘<div id=”cir-wrapper” style=”border-color:’;
echo get_theme_mod( ‘topborder’, ‘#000000’ ) . ‘;”‘;
if ( has_nav_menu( ‘secondary’ ) ) echo
‘<div class=”cr-secondary-menu” ‘. ‘>’;
break;
case “boxedmedium” :
echo ‘<div id=”cir-wrapper-boxed-medium” style=”border-color:’;
echo get_theme_mod( ‘topborder’, ‘#000000’ ) . ‘;”>’;
if ( has_nav_menu( ‘secondary’ ) ) echo
‘<div class=”cr-secondary-menu” ‘. ‘>’;
break;
case “boxedsmall” :
echo ‘<div id=”cir-wrapper-boxed-small”
style=”border-color:’;
echo get_theme_mod( ‘topborder’, ‘#000000’ ) . ‘;”>’;
if ( has_nav_menu( ‘secondary’ ) ) echo
‘<div class=”cr-secondary-menu” ‘. ‘>’;
break;
}
?>
Hi Ellen,
We are really sorry but we didn’t find such a issue in our theme file, so could you please check once and we have mention code below from our theme, so please check once.
<?php $pagewidth = get_theme_mod( 'page_width', 'default' );
switch ($pagewidth) {
case "default" :
echo '<div id="cir-wrapper" style="border-color:';
echo get_theme_mod( 'topborder', '#000000' ) . ';"';
if ( has_nav_menu( 'secondary' ) ) echo 'class="cr-secondary-menu" '. '>';
break;
case "boxedmedium" :
echo '<div id="cir-wrapper-boxed-medium" style="border-color:';
echo get_theme_mod( 'topborder', '#000000' ) . ';">';
if ( has_nav_menu( 'secondary' ) ) echo 'class="cr-secondary-menu" '. '>';
break;
case "boxedsmall" :
echo '<div id="cir-wrapper-boxed-small" style="border-color:';
echo get_theme_mod( 'topborder', '#000000' ) . ';">';
if ( has_nav_menu( 'secondary' ) ) echo 'class="cr-secondary-menu" '. '>';
break;
}
?>
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.