Header position Top, Left & Right
-
Hello smart people and WordPress geeks. I’m having a little hard time to figuring out how to have multiple headers in the website that i’m creating.
So i have created a WordPress portfolio theme, and added Options Framework to my theme. Now i Want to add a option for displaying header in site. Top Right And default to be left.
I would like to know how to load the top and right headers and be able to make some customization in js files too, because the SidebarWidth in jquery.blog.js is 220. now i need themme to understand that user choose the header top and i want the header to be on top or on right side if the right side option is chosen.<?php if of_get_option ('header_position','top') : get_header( 'top' ); elseif of_get_option ('header_position','right') : get_header( 'right' ); else : get_header(); endif; ?>
is this code against WordPress codex and rules ? if Yes can you please tell me the correct way to have this thing done?
Thank you for your time.!
- The topic ‘Header position Top, Left & Right’ is closed to new replies.