Forums

Question/Problem with a theme (18 posts)

  1. peterspliid
    Member
    Posted 1 year ago #

    I have used wordpress many times before, so I know how to use it. I have installed a theme that doesn't show the pages in the top navigation bar right.

    I have deleted all normal pages, and made ONE page, which is called 'The Pupils’ Committee'. The page doesn't show up anywhere, and there are just those 3 standers pages, I can't find anywhere :S

    The blog is here:
    http://eccentric.wtf.la
    Theme is called PressRow and can be downloaded here: http://www.findcreditcards.org/pressrow/

    I know I can delete the pages in the navigation bar by editing the header.php, but it's not how wordpress is suppose to work! I'm the webmaster, and not the one who creates the posts and pages, so I can't edit the file(s) each time he wants to add something.

  2. mercime
    Member
    Posted 1 year ago #

    In header.php

    <div id="nav">
    <ul>
    <li><a class="blog" href="<?php bloginfo('url'); ?>">blog</a></li>
    <?php wp_list_pages(); ?>
    </ul>
    </div>
  3. peterspliid
    Member
    Posted 1 year ago #

    Thank you very much.

    I've done what you told me, and take a look at it now. It says 'pages' above 'The Pupils’ Committee'. How do I remove it?

    And when I click on it, the header changes back to how it looked like at the beginning.

    I really appreciate your help.

    IMPORTANT EDIT!!!:
    I have made a site where you can test http://eccentric.wtf.la/testing/ (please no vandalism)
    Username: admin
    Password: !z%vY&BeOY^V

  4. mercime
    Member
    Posted 1 year ago #

    my bad, it should be
    <?php wp_list_pages('title_li='); ?>
    need to add argument inside parenthesis to take away "Pages" default heading. that's it.

    Please change username and password to your test application. Cheers.

  5. peterspliid
    Member
    Posted 1 year ago #

    Thanks once again!

    Try clicking on one of the test links on the nav bar. The header changes back again, which it's not suppose to do

  6. mercime
    Member
    Posted 1 year ago #

    That's what's happening too in your second install http://eccentric.wtf.la/testing/ as well.
    Ok, go to Settings > Permalinks and set to pretty permalinks and update your main installation in root. Did you delete the About and Archive pages in the main installation or did you keep them? Do you need to keep the second WP install in /testing/ ? If not, please delete.

  7. peterspliid
    Member
    Posted 1 year ago #

    Why do you want me to delete the testing blog? It's not connected with the real blog at all. I just made it so you can test

    I have tried to delete About and Archive pages, but it gives me some errors. You can see the errors by clicking on one of the testing pages

    And does the permalinks have anything to do with this case?

  8. peterspliid
    Member
    Posted 1 year ago #

    ~bump

  9. mercime
    Member
    Posted 1 year ago #

    Yes, if you have two WP installs (say one in root and one in folder) permalinks should be set to default otherwise what's happening with your URL's will continue to happen.

  10. peterspliid
    Member
    Posted 1 year ago #

    I have deleted the whole testing folder, and the permalinks are the to default. I still have the same problem

  11. peterspliid
    Member
    Posted 1 year ago #

    ~bump

  12. mercime
    Member
    Posted 1 year ago #

    Do you wp-cache or super-cache? Clear cache and your browser cookies. All's good now with default permalinks.
    How about trying pretty permalinks now? Just a thought :-)

  13. peterspliid
    Member
    Posted 1 year ago #

    I use wp-cache, but it's disabled.

    Now it's much better, but the page in the navigation bar isn't selected with the black fill when you're on that page. (like the latest news page)

    Is it possible to fix?

    And thank you very much for your support.

  14. peterspliid
    Member
    Posted 1 year ago #

    ~bump

  15. peterspliid
    Member
    Posted 1 year ago #

    ~bump

  16. webmatter
    Member
    Posted 1 year ago #

    Look in your css file for
    #nav li a:hover { ... }

    add
    #nav li a:hover, #nav li a.current_page_item { ... }

    This way the current selected item will be black as well .

  17. peterspliid
    Member
    Posted 1 year ago #

    ok I've change it, but it doesn't work.

    'latest news' is filled doesn't matter what page you're on.

    Maybe I've done something wrong?

    header.php

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    
    <head profile="http://gmpg.org/xfn/11">
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    
    <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> &raquo; Blog Archive <?php } ?> <?php wp_title(); ?></title>
    
    <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->
    
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    
    <?php wp_head(); ?>
    </head>
    <body>
    
    <div id="container">
    
    	<div id="page" class="blog">
    
    			<div id="header">
    			<h1><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1>
    <div id="nav">
    <ul>
    <li><a class="blog" href="<?php bloginfo('url'); ?>">Latest News</a></li>
    <?php wp_list_pages('title_li='); ?>
    </ul>
    </div>
    			<div id="pic"></div>
    		</div>
    		</div>

    stylesheet.css

    /*
    Theme Name:		PressRow
    Theme URI:		http://www.findcreditcards.org/pressrow/
    Description:	An awesome theme developed for <a href="http://www.findcreditcards.org/">FindCreditCards</a> by the digitally-famous <a href="http://www.pearsonified.com/">Chris Pearson</a>.
    Version:		0.1
    Author:			Chris Pearson
    Author URI:		http://www.pearsonified.com/
    */

    [Moderated: Too much code. Please consider placing the code in a text file on your site with a link here -or- use a pastebin service such as http://wordpress.pastebin.ca. Thanks!]

  18. webmatter
    Member
    Posted 1 year ago #

    oops there was an error in my code, it should be

    #nav li a:hover, #nav li.current_page_item a { ... }

    The class current_page_item is assoziated to the li-tag not the a ..

    Your latest news is black because in the line below you gave the class
    .blog #nav li a.blog the background color #222. If you remove this first entry in the row it shouldn't be black by default anymore .. did you change this recently?

Topic Closed

This topic has been closed to new replies.

About this Topic