Your Time:
Our Time:
← Back to discussions

Header Setting

Need help with a different issue? Search the forums or open a new ticket.
Open a support ticket

This topic has 3 replies, 2 voices, and was last updated 12 years, 8 months ago by FailProof.

  • 2014-01-12 at 6:46 am
    Support Expired
    #2139
    FailProof
    Participant
    • Topics: 3
    • Replies: 5
    • Total posts: 8
    • Post count: 5

    Hi Guys,

    We just purchased and installed the theme but for whatever reason, we are not able to get the header to change style. I have your support ID added to Skype (I will message you). When you are available, perhaps we can connect and you can take a look at it.

    Thanks

    2014-01-12 at 4:30 pm
    #2161
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    Thanks for the head-up I will make a fix for it.

    2014-01-12 at 4:32 pm
    #2163
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    Open the header.php file and replace the following code

    Find Code

    $headerstyle = get_option('atp_headerstyle','default');
    			
    if ( is_page( 6779 ) ) {
    	get_template_part('headers/header','style1');
    }
    elseif ( is_page( 6767 ) ) {
    	get_template_part('headers/header','style2');
    }
    elseif ( is_page( 6769 ) ) {
    	get_template_part('headers/header','style3');
    }
    elseif ( is_page( 6775 ) ) {
    	get_template_part('headers/header','style4');
    }
    else {
    	get_template_part('headers/header','style2');
    }
    

    Replace Code

    $headerstyle = get_option('atp_headerstyle','default');
    
    switch($headerstyle)
      {
       case 'headerstyle1':
    	  get_template_part('headers/header','style1');
    	  break;
       case 'headerstyle2':
    	  get_template_part('headers/header','style2');
    	  break;
       case 'headerstyle3':
    	  get_template_part('headers/header','style3');
    	  break;
       case 'headerstyle4':
    	  get_template_part('headers/header','style4');
    	  break;
       case 'default':
    	  get_template_part('headers/header','default');
    	  break;
       default:
    	  get_template_part('headers/header','default');
      }
    
    2014-01-19 at 6:30 am
    Support Expired
    #2355
    FailProof
    Participant
    • Topics: 3
    • Replies: 5
    • Total posts: 8
    • Post count: 5

    Thanks Maqk, that worked!

You must be logged in to reply to this topic.