Osclass forums
Development => Themes => Topic started by: Ermitage on May 27, 2013, 12:20:23 am
-
Hi, I tried to add a list of static page in the header menu like the footer menu, I add to header.php file the following code
<ul id="header-nav">
<li><a href="<?php echo osc_contact_url(); ?>"><?php _e('Contact', 'realestate') ; ?></a></li>
<?php osc_reset_static_pages() ;
$i = 1;
while( osc_has_static_pages() ) {
$last = '';
if($i == osc_count_static_pages()){
$last = 'class="last"';
}
?>
<li <?php echo $last; ?>><a href="<?php echo osc_static_page_url() ; ?>"><?php echo osc_static_page_title() ; ?></a></li>
<?php
$i++;
}
?>
</ul>
The result is that the pages are listed but when I go to the page, the content is not visible. If I remove that code in the header and i use the links for pages in the footer, I see pages correctly
Any idea?
-
nobody can help me? :'(
-
Please anybody can help me!!!! :'( :'(
-
Did you solve this problem?
-
@Ermitage
Hi man, it means when you click on link, you are not on right site? You can check url of link if it is correct, problem will be probably there.
-
Move the <?php osc_reset_static_pages(); ?> below while loop. Cheers!
-
Move the <?php osc_reset_static_pages(); ?> below while loop. Cheers!
Thank you so much, I was dealing with that since many hours :o
-
Hi
when i use this code on header.php the menu show VERTICAL - What i have to add or change that it SHOWS horizontal ?
(If it show something like osclasswizards will be great.)