wolfden
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Portfolio – WPESP ThemeTo get contact and about pages working you have to alter the code of index.php and footer.php (to fix the footer links as well). I also did the same with header.php to be dead-sure it’s right.
so open up the php file and find a corresponding section
for example in index.php link to contact section looks like this:elseif(is_page(contact-us)) : // Page Contact include(TEMPLATEPATH . '/contact.php');link however isn’t failsafe this way cause its adressed only partially (thats why it works for some without altering). to correct this replace ‘contact-us’ with
array(4,'contact-us','contact-us'). This will link to the page ID (to check it go to the pages section in wp-admin and check URL on ‘view’)title and slug as well.also in header.php i changed this:
<li><a <?php if ( is_page('about') ) { ?> class="active"<?php } ?> href="<?php echo get_option('home'); ?>/about" title="Go to the About page">ABOUT<small>Professional Life</small></a></li>to this:
<li><a <?php if ( is_page(array(2,'about','about')) ) { ?> class="active"<?php } ?> href="<?php echo get_option('home'); ?>/?page_id=2" title="Go to the About page">ABOUT<small>Professional Life</small></a></li>same for the footer.php file. I’m not really sure which part makes it work or maybe its the whole (it’s probably the last part with changing ‘/about to /?page_id=2’), but im happy as it is and won’t mess around anymore :p
now trying to get the contact form to work :p
hope this helps