Forum Replies Created

Viewing 15 replies - 1 through 15 (of 15 total)
  • Thread Starter harry_034

    (@harry_034)

    I think I’ll probably go down the plug-in route. Less hassle and at least it will be updateable more easily if hosts are changed again in the future. Thanks for both of your help.

    Do you have a rough timescale as to when this function will be complete?

    Thread Starter harry_034

    (@harry_034)

    Ok thanks.

    Thread Starter harry_034

    (@harry_034)

    Ok sorry, ignore that last post. I’ve found what the issue was and I can’t believe I kept missing it! The file name had underscores but the code was referencing dashes instead. So stupid!

    Thread Starter harry_034

    (@harry_034)

    Hi, thanks for the offer of further assistance. I ran an error report and you’re right, it can’t find the navwalker php file for some reason. It is sitting in the same directory as the functions.php file. The report is as follows:

    [11-Feb-2015 18:02:48] PHP Warning:  require_once(wp_bootstrap_navwalker.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /home2/mharris1/public_html/kaitlin-howard.co.uk/wordpress/wp-content/themes/kh_theme/functions.php on line 22
    [11-Feb-2015 18:02:48] PHP Fatal error:  require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'wp_bootstrap_navwalker.php' (include_path='.:/usr/lib64/php:/usr/share/pear') in /home2/mharris1/public_html/kaitlin-howard.co.uk/wordpress/wp-content/themes/kh_theme/functions.php on line 22
    [11-Feb-2015 18:02:50] PHP Warning:  require_once(wp_bootstrap_navwalker.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /home2/mharris1/public_html/kaitlin-howard.co.uk/wordpress/wp-content/themes/kh_theme/functions.php on line 22
    [11-Feb-2015 18:02:50] PHP Fatal error:  require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'wp_bootstrap_navwalker.php' (include_path='.:/usr/lib64/php:/usr/share/pear') in /home2/mharris1/public_html/kaitlin-howard.co.uk/wordpress/wp-content/themes/kh_theme/functions.php on line 22

    I am stumped!

    Thread Starter harry_034

    (@harry_034)

    No it’s pointing to the right place. What I’ve done is to create a theme folder called kh_theme and it sits in there with all the other php files.

    The snippet of code I’m using is

    require_once(‘wp_bootstrap_navwalker.php’);

    I’ve used other articles that show me how to display the menu in its current form (ie sideMenu.php) but this method will not allow me assign new pages to it, which I understand. My issue is that I’m following the article you suggested to the letter but that there is something within a previous tutorial that I have done that is preventing the navwalker from working properly and unfortunately I don’t know enough about php and wordpress to rectify it. Is there a possibility that you could take a look at my files and at least get the menu working? I don’t know if you freelance at all for this kind of thing or how much your rates are??

    Thread Starter harry_034

    (@harry_034)

    Hi thanks for this. Hope you’ve had a good New Year! I’ve tried the navwalker multiple times but it keeps making my site disappear?? The web page is just blank when I try and preview my changes plus the wp-login.php page is blank too. The problem seems to be when I include this line of code from the tutorial because without it, the structure is there, but the content isn’t:

    // Register Custom Navigation Walker
    require_once(‘wp_bootstrap_navwalker.php’);

    Thread Starter harry_034

    (@harry_034)

    Thread Starter harry_034

    (@harry_034)

    Hi yes I took instruction from this wordpress codex article here:

    https://codex.www.ads-software.com/Navigation_Menus

    My sideMenu.php file is the actual menu in bootstrap HTML.

    Thanks!

    Thread Starter harry_034

    (@harry_034)

    Hi Stephen.

    Well I already have the menu built where I’ve amended some of the Bootstrap classes so how do I “write some custom functions to modify the HTML output of wp_nav_menu() so the appropriate Boostrap classes are added“??

    Thanks again.

    Thread Starter harry_034

    (@harry_034)

    Hi stephen, I’m not sure I understand. I feel as though this hasn’t actually picked up my bootstrap menu. It’s not showing my fonts, just the grey colour for the idle and rollover states. The ‘sideMenu’ is my php file with the actual menu in it and the above code in the functions has allowed me to see a “menu” in the appearance section of my dashboard, but when I started adding pages in my dashboard I expected it to pick up the styling. I’m really not sure what I’ve done wrong here. Can you explain the process in what you need to do when creating your own menu??

    Many thanks for your help on this.

    Thread Starter harry_034

    (@harry_034)

    I suppose the two questions I have currently are:

    1) Why are my header images not showing?
    I have created the header.php files, referenced the images in the head under “pics/kaitlinHowardHomePicHeader.jpg” and also tried “/pics/kaitlinHowardHomePicHeader.jpg” and referenced the <?php get_header(‘headerHome’); ?> in the index file.
    They are saved in the theme directory on FTP in the “pics” folder.

    2) I am trying to create a custom menu. I took instructions from a Treehouse article but all I’m getting is the tail end of the code:
    ”)); ?>

    The code is as follows:

    <!–Left nav–>
    <div class=”col-md-4 col-sm-4″>
    <div class=”sidebar-nav”>
    <div class=”navbar navbar-default”>
    <div class=”navbar-header”><button class=”navbar-toggle” type=”button” data-toggle=”collapse” data-target=”.sidebar-navbar-collapse”>
    <span class=”sr-only”>Toggle navigation</span>

    </button></div>
    <div class=”navbar-collapse collapse sidebar-navbar-collapse”>
    <ul class=”nav navbar-nav”>

    <?php wp_list_pages(array(‘title_li’ => ”)); ?>

    <ul class=”dropdown-menu”>

    <ul class=”dropdown-menu”>

    </div>
    <!–/.nav-collapse –>

    </div>
    </div>
    </div>
    <!–Left nav ends–>

    Thanks,
    Harry

    Thread Starter harry_034

    (@harry_034)

    Perfect! That’s worked a treat! Thanks very much

    Thread Starter harry_034

    (@harry_034)

    It’s ok, I’ve sorted it.

    Thread Starter harry_034

    (@harry_034)

    Oh and I should add that I am calling in the style.css in the head of page using this:

    <?php bloginfo(‘stylesheet_url’); ?>

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