Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter Truck35

    (@truck35)

    Hi Mr. stephencottontail,

    Thanks for the information. I’m going to try to pass an array as an argument as you suggested. Sorry for taking so long to reply, busy doing other things in addition to my IT stuff. I only echoed the function because it returns a Boolean value and I wanted to see if the function was working. I will post my result of the “wp_nav_menu()” function call with an array passed as an argument as soon as possible.

    Thanks for your help it is really appreciated.

    Bless,
    Truck35

    Thread Starter Truck35

    (@truck35)

    I did not pass any arguments with my function. From what you said, this could be the reason why it is not working. Here is my code that I have in my header file in my theme:

    <div id="header">
    	<nav>
    		<?php echo wp_nav_menu(); ?>
    	</nav>
    	</div><!--header-->

    Any help you could give me would be appreciated.

    Thanks,
    Truck35

    Thread Starter Truck35

    (@truck35)

    I used the echo command to see if the function was being recognized and the function did not return either true or false. The WordPress documentation for the function says that it should return true if the pages are found and false if it does not find or recognize the pages. If anybody has any ideas of what is going on with the “wp_nav_menu()” function, please let me know.

    Thanks,
    Truck35

    Thread Starter Truck35

    (@truck35)

    I changed the of the “function.php” file to “functions.php” and everything is working fine now.

    Thanks,
    Truck35

    Thread Starter Truck35

    (@truck35)

    I changed the name of my file from function.php to functions.php and everything is working fine now. I did not realize what you meant at first when you put the not that said to make sure the name is plural.

    Thanks for everyone that helped me.

    Bless,
    Truck35

    Thread Starter Truck35

    (@truck35)

    Sorry for all the confusion with the second post. I did see the replies from the second post. My file is called function.php. I right clicked and selected view source file and I do not see any reference to a link to my style.css file. I echoed the return value of my “wp_enqueue_style(‘style’, get_stylesheet_uri())” function in my index.php file and it returned a styled version of my page using the css that I have in my “style.css” file. I also went to the “Net” tab in firebug and refreshed my page after loading my page and it displayed some information that I am unfamiliar with.

    Thread Starter Truck35

    (@truck35)

    I am assuming the “Net” tab in firebug is the one you are referring to. I enabled it and viewed the tab’s content and it did not show any file or path. I perplexed, I even tried using a link tag in the header and still can’t make any changes using my style sheet.

    Thread Starter Truck35

    (@truck35)

    The style.css is in the root directory of the folder that I created for my theme. Firebug just shows that there is no style sheet attached to the page. I don’t know what path is shown for my style.css file. Does the “get_stylesheet_uri()” method return the path when called? If so, then I can echo it and see what path it is returned or, if there is a better way maybe you can let me know.

    Thanks,
    Truck35

    Thread Starter Truck35

    (@truck35)

    I am working of my local computer so, I don’t know if it is possible to have a link. I did activate the theme in the administration. I see the name of the theme and version etc. in administration page where you choose your theme but, when I view my theme, it does not recognize the style sheet. I used fire bug and it confirms that the style sheet is not being recognized. However, I can style the page using firebug.

    Thread Starter Truck35

    (@truck35)

    It was a copy an paste problem. It sould be: /*.

Viewing 10 replies - 1 through 10 (of 10 total)