TWO HOME PAGES – Help me crack this code please
-
Hi,
I currently have two home pages on my website. I know its possible to change this by setting one as a child page and then hiding it.
However i would like to change to hard code so that the default one disappears and i’m left with the one i created. Here is the navigation php code below:<!--Page Navigation--> <?php if(is_array(get_option('ds_cat_exclude'))) $ds_cat_exclude = implode(',', get_option('ds_cat_exclude')); // if($ds_cat_exclude) $ds_cat_exclude = $ds_cat_exclude.','.get_option('ds_blog_cat'); if(is_array(get_option('ds_exclude'))) $ds_exclude = implode(',', get_option('ds_exclude')); ?> <?php if(get_option('ds_landing') == 'Categories' || get_option('ds_landing') == 'Pages') { ?> <?php if (get_option('ds_home_link')) $hidden = ' hidden'; ?> <ul id="menu"> <li<?php if (is_home()) echo ' class="current_page_item'.$hidden.'"'; ?>><a href="<?php echo get_settings('home'); ?>/">Home</a></li> <?php echo $ds_cat_exclude; if(get_option('ds_landing') == 'Categories') wp_list_categories('exclude='.$ds_cat_exclude.'&orderby=name&show_count=0&title_li='); else wp_list_pages('exclude='.$ds_exclude.'&title_li=&sort_column=menu_order'); ?> <?php if(get_option('ds_blog') && !get_option('ds_blog_link')) echo '<li><a href="'.get_category_link(get_option('ds_blog_cat')).'">Blog</a></li>'; ?> </ul> <?php } ?>
let me know if you know what i should edit
thanks alot
jonny
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘TWO HOME PAGES – Help me crack this code please’ is closed to new replies.