missing divs in 5.0.0 header

Home Forums WordPress Themes – Premium Circumference missing divs in 5.0.0 header

This topic contains 1 reply, has 2 voices, and was last updated by  Binaya D 3 years, 2 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #36373

    Ellen
    Participant

    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;
    }
    ?>

    #36386

    Binaya D
    Participant

    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

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.