I have the following markup which I am trying to incorporate into my child theme footer.php
<footer class="footer">
<ul>
<li><a href="#"><i class="fa fa-youtube"></i></a></li>
<li><a href="#"><i class="fa fa-twitter"></i></a></li>
<li><a href="#"><i class="fa fa-linkedin"></i></a></li>
</ul>
<p>This site is hosted by <a href="https://www.bluehost.com" target="_blank">Bluehost </a></p>
</footer>
twentysixteen has a ‘Social Links Menu’ which I was wondering if it can be used to output the above markup. I have registered new menu using custom links and font awesome classes and assigned it to Social Menu location however this is what I get
what I am trying to achive is the footer as seen here
Since you don’t mention what the CSS is that inserts the icons in the links, I guess the theme takes care of that too as it seems to do in the HTML you posted.
In the admin area under Menus I used Custom Links with an optional CSS Classes field where I put corresponding font awesome CSS classes - fab fa-github, fab fa-codepen, fab fa-youtube- that insert those icons in the links
Yes, I have that done via functions.php
twentysixteen uses the following code in its footer.php which I think makes social menu work
I copied that code into my child theme footer.php but because my child theme CSS is based on my original markup (shown at the beginning of this post) that the reason its not working. I am going to try tweak wp_nav_menu function to make it produce the desired mark up…I guess…
Following is the markup that the above PHP produces…
Could you use e.g. the Inspector tool in your browser to see what your browser see and try find out what is not working and try fix things with the Inspector edit.
I’m out of here for some time now so I hope next member can give you more ideas.
I thought the use of the Inspector would show what the browser made of the code it received. Especially the fetched css file, if it was applied to the html you added…
Browsers nowadays are programmed to try amend common errors and typos in the source. Though sometimes that could also break things.
My font awesome icons are not clickable and navigation label text still appears next to icons. I was wondering if its possible to remove labels and make icons clickable