coloradoskiier
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Vega] Icon column widths in latest version (2.2.3)Just a suggestion… since it’s recommended, as you said, to make edits to Vega with child themes, it would be nice to include support in Vega for overriding “required” files (the ones included using the ‘require’ directive in functions.php).
The file “includes/wp_bootstrap_navwalker.php” is a good example. I had to edit that file to make the top-level links in my drop-down menus clickable. I added an “includes” folder to my child theme and made a copy of the file there, but it was ignored by Vega because Vega’s functions.php uses get_template_directory() to include the file. The get_template_directory() function returns the parent directory, not the child. So I had to edit functions.php in the parent theme and change get_template_directory() to get_stylesheet_directory().
It’s not a huge problem, but it would be nice if there was a more elegant, built-in way to handle situations like that.
Forum: Themes and Templates
In reply to: [Vega] Icon column widths in latest version (2.2.3)Thanks. I appreciate the quick response! (And that did fix the problem. I did it with a child theme as you suggested.)
- This reply was modified 7 years, 6 months ago by coloradoskiier.
Forum: Themes and Templates
In reply to: [Vega] Icon column widths in latest version (2.2.3)https://www.inclinetechnical.com
If you scroll down to the “What We Do” section, you’ll see the columns are narrow and have gaps on the left and right. Prior to upgrading, each of these columns took up 50% of the available page width.
Forum: Fixing WordPress
In reply to: Make parent menu clickableIn case anyone else runs into this issue, it’s not a problem with the menu settings.
If your WordPress theme uses Bootstrap for a responsive layout, then the problem is most likely a file called wp_bootstrap_navwalker.php that’s part of your theme.
There’s code in that file which ALWAYS render the top-most (parent) menu link with a ‘#’ URL if there are child pages below it.
Here’s a StackOverflow post describing the problem:
https://stackoverflow.com/questions/25692514/bootstrap-how-do-i-make-dropdown-navigation-parent-links-an-active-linkAlthough the “official” solution in that post is a JavaScript solution, the solution I chose is the one by Sohail Qureshi just below the JavaScript one. It involves updating the code in wp_bootstrap_navwalker.php to correctly render top-level links. That solution worked perfectly for me.