Ready to get started?Download WordPress


Need help with Black Urban theme (1 post)

  1. yobeat
    Posted 4 years ago #

    I am using the black Urban theme by Anton Shevchuk and it is perfect for my project, but unfortunately I don't even begin to speak russian, which seems to the be the language all the support is in. I should also mention I am a total trial and error person, and know little to nothing about actually writing PHP, which will hopefully explain why i would need to ask this question!

    So I am trying to change the links in the header to go to specific pages. I have found where to do this is functions.php but i don't know what to actually change and what to change it to. here is the code

    <select name="blackurban[links][0]" >
    <option value="0"><?php echo attribute_escape(__('Home page')); ?></option>
    foreach ($pages as $page) {
    $option = '<option value="'.$page->ID.'';
    $option .= ($page->ID == $blackurban['links'][0] ? 'selected="selected"' : '');
    $option .= '>';
    $option .= $page->post_title;
    $option .= '</option>'."\n";
    echo $option;

    and here is the page i would like it to link to http://laneshellhorse.com/?page_id=13 and of course, the text should then read "bio"

    All i could think of was to add in the page id number in this line $option = '<option value="'.$page->ID.''; and that didn't work. anyone know how to do this?


Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.