Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Abledaccess

    (@abledaccess)

    alxvallejo,

    Nothing to report. I didn’t get anywhere. I convinced myself it’s best to leave all the hooks in. Sorry.

    Johnny

    Thread Starter Abledaccess

    (@abledaccess)

    My apologies. That’s a tall order I requested. Let me break it down a bit — not that I think me breaking it down will make it any easier to solve.

    I got the menu working, meaning it is stripping all the rendancies I want it to take out, when no menu is selected in the backend (see: https://abledaccess.com). But once I select the menu I want to display, which is essentially the same menu that is there, now, plus one extra home link, I get all kinds of errors:

    Warning: Missing argument 5 for Clean_Walker::start_el() in /Users/Johnny/Sites/Abledaccess/wp-content/themes/FSSFive/functions.php on line 9

    For instance. I’m using this code, https://pastebin.com/rZ54NZbM, for my walker in my functions template file and;

    <?php $walker = new Clean_Walker(); wp_nav_menu(array("container" => "ul", "menu_class" => "fl-tabs fl-clearfix fl-tabs-left", "theme_location" => "main_nav", "walker" => $walker )); ?>

    To call on it. Again any help anyone can provide would be fantastic.

    (A related aside; I now understand what happened in my original post, with the <strong> tag, and the seemingly arbitrary bolded text. It should read “surround the active link text with <strong> tags. Hopefully that fixes it. Guess we’ll soon see.)

    Thread Starter Abledaccess

    (@abledaccess)

    Amazing. I got it working. Thanks a million.

    Thread Starter Abledaccess

    (@abledaccess)

    Sorry. “The wording of the links” is exactly what I meant. Of course! I see. In retrospect, kind of a silly question. Thank you. I see what I was doing incorrectly. No worries, at all. Wonderful!

    You’ve given much to work with. So, in theory, would get_adjacent_post, on my single template, used in the this instance, meaning hoping for the same result, yield the same thing? Never mind. Sorry for the jumbled over thought. I’ll try it out, and see what happens.

    Thanks a ton.

    Thread Starter Abledaccess

    (@abledaccess)

    Thanks a lot alchymyth,

    Beautiful! Does exactly what I need it to. Brilliant!

    Sorry for the delay. I’m trying to learn PHP, at the same time as hacking around with WordPress. Which means I tried, and was successful, well half successful, to customize the above bit of code for my purposes. Not to mention also in an attempt to understand it. Which I’m pretty sure I do.

    But, and I’m not wanting to push my good fortune, how might I customize what the output link says? I tried to define new variables, and they output what I wanted, but the link to the corresponding pages disappeared from the text. What did I not do right?

    Anyway thanks a million…

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