How to Embed HTML in a PHP Wordpress Navigation?

My wordpress navigation code is as follows:

<?php } ?>
<?php if (get_option('fudge_speakers_widget_menu')) { ?>
<li><a title="<?php echo get_option('fudge_speakers_widget_menu'); ?>" href="<?php bloginfo('url'); ?>#speakers"><?php echo get_option('fudge_speakers_widget_menu'); ?></a></li>
<?php } ?>
<?php if (get_option('fudge_sponsors_widget_menu')) { ?>
<li><a title="<?php echo get_option('fudge_sponsors_widget_menu'); ?>" href="<?php bloginfo('url'); ?>#sponsors"><?php echo get_option('fudge_sponsors_widget_menu'); ?></a></li>

I need to add in a separate page that is not from a widget. Just www.example.com. I tried <li>www.example.com</li> but that failed.

How do I add the external widgetless nav-link in the PHP file?

I don't know if it helps, but this is using the Fudge theme

Solutions

For www.example.com to appear on the li list, you will need to change

<li>www.example.com</li>

to

<li><a href="www.example.com">www.example.com</a></li>

The second www.example.com can be change to whatever text you want displayed

<li>

is not a link but a list entry.

<a href="www.example.com">Click Me!</a>

would be a link.

Tags: PHP / Html / Wordpress

Similar questions

Embed Wordpress content into html
I want to embed the news section of a Wordpress (posts) page/site into a html page without the Wordpress Menu or the Footer and make it the content appear as though it is part of that HTML page. This is because the uploading of news stories is easier in Wordpress for beginners.
Embed-able HTML snipet in wordpress
I have a CMS in wordpress. I want a HTML snippet which we'll use it to show some content in other website. Main CMS site is http://example.com, other site is http://other.example.com. Now we want footer to be same, i.e. abc.com and other.abc.com should share the footer. So that If I change footer from CMS, I don't need to change that in main site. ...
HTML image embed link does not work in wordpress
could you please help me to solve my problem? Since I am trying to add URL into my image it does not do anything. I have a CSS animation inside of my image. The system is based on wordpress. After the image hover, image is not clickable after the url is set. The html code looks like this When I try to add url it looks like this CSS #lab...
Embed iframe or html page into dashboard widget
I was wondering if it would be possible to embed an html page or add an iframe into a dashboard widget. I have a multi author blog and i want to make my admin section a simple as possible for some of my author's are less "technical". So I already added a simple widget containing some text. And I took out the less interesting widgets. And I added so...
How do I create an HTML embed code to publish WP posts on other non-WP websites?
I would like to offer an embed code on my WP blog allowing users to re-publish recent posts on their websites using HTML/ Javascript code snippet that they can copy from my WP site and paste into their non-WP site. Can you guys help?
How to embed custom HTML code with no plugins?
I'm trying to embed this code into a post: But the result in the preview always falls back on the image, and the comment tags <!-- are visible for some reason. Is there any way to embed this without a plugin? Thanks

Also ask

We use cookies to deliver the best possible experience on our website. By continuing to use this site, accepting or closing this box, you consent to our use of cookies. To learn more, visit our privacy policy.