WordPress.org

Ready to get started?Download WordPress

Forums

Header Help with StudioPress theme (3 posts)

  1. equinestaff
    Member
    Posted 2 years ago #

    Hi There, I did a revamp on my web page and ow using the StudioPress theme however it doesn't support the menus so all of my pages are on the menu bar. I have tried to edit the menu but without success as i only want about 8 of the pages as headings- my site is http://www.equinestaff.com.au any help would be great.

  2. premiumwp
    Member
    Posted 2 years ago #

    This is quite an old theme, and you could probably find a much better one to use. However if you wanto to remove pages from showing in the menu. In header.php find this:

    get_results('select ID, post_title from '. $wpdb->posts .' where post_status = "publish" and post_type = "page" order by ID');

    Change to this

    get_results('select ID, post_title from '. $wpdb->posts .' where post_status = "publish" and ID !="39" and post_type = "page" order by ID');

    In this example, it will remove page id 39 from the menu

  3. equinestaff
    Member
    Posted 2 years ago #

    Thanks for your help - however no go- when i do this it comes up with this Parse error: syntax error, unexpected '}', expecting T_STRING or T_VARIABLE or '$' in /home/equinest/public_html/wp-content/themes/studiopress/header.php on line 46

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.