Clearing content inserted with generate_before_navigation action
-
I want to add social media icons just above the navigation menu, but don’t want to add those icons in the Top Bar widget. The reason is because I have the myStickyMenu plugin set up to make content inside the #masthead ID stick — adding the icons to the Top Bar widget would be outside the #masthead ID, and would not stick when scrolling.
The problem is that when I add a placeholder DIV for these social media icons using the “generate_before_navigation” action (in my child theme’s functions.php file,) the resulting output gets placed between the logo and the navigation menu.
Here’s a screenshot…
https://a3q.179.myftpupload.com/wp-content/uploads/generate_before_navigation-not-on-its-own-line-above-menu.jpg…which may also be seen here:
https://a3q.179.myftpupload.comIn short, I want to move the red arrow content to where the green arrow is pointing (both noted in the screenshot.)
I gave this social media icons DIV a “socialLinks” class, then tried to “clear” after it (by targeting the socialLinks class with custom CSS) so the navigation menu is on its own line below this DIV (where the green arrow is in the screenshot.) I wasn’t able to clear the menu to a new line. I want this generate_before_navigation action content to go above the navigation menu on its own line (and flushed right) in desktop, tablet, and mobile responsive widths.
What CSS should I use to do this?
Thank you.
- The topic ‘Clearing content inserted with generate_before_navigation action’ is closed to new replies.