WebsiteBaker Support (2.8.x) > Templates, Menus & Design
Can I have a nav menu of text links AND images?
seanie_morris:
--- Quote from: Ruud on August 27, 2015, 10:29:29 AM ---Without a link it is impossible to say more.
--- End quote ---
I usually don't like showing links when I'm in 'under construction' mode, but here it is:
http://www.annaharveyfarm.com/wb
The menu call function in this particular template from index.php is:
--- Code: ---<?php
if (!isset($page_id) OR $page_id==1 OR $page_id==1) {
include('snippets/responsiveslides.php');
include('snippets/nav.php');
include('snippets/site-headline.php');
include('snippets/grids3.php');
} else {
include('snippets/nav.php');
}
include('snippets/playground.php');
include('snippets/2col-content.php');
?>
--- End code ---
and the piece doing the calling for the menu in nav.php is:
--- Code: ---<div class="menu">
<?php echo $topnav; ?>
</div>
--- End code ---
(Sorry for those of you doing a search in the future for a similar problem but not using a similar template, the subsequent solutions MIGHT not work for you!)
I tried the show_menu2() variations and no joy (I didn't expect it to work anyway, as this template is doing a different calling).
Ruud:
I assume the flags you are talking about are the ones in the footer of the website.
They are looking fine to me.. Tested in FF, Chrome, IE, Edge
There are some strange things however..
1. All country landing pages (like: /wb/pages/fre.php ) are giving a status 500 (Server error), but the pages are served fine.
This points to some server or .htaccess fault.
2. There are some "lost </div>'s" in the output.
Use Firefox, do Ctrl-U (source view) and look for red </div> lines.
3. A script is loaded that generates a 404 error (not found).
/wb/templates/bs_naturak/js/responsive-slider.js does not exist.
(edit: you can always remove the url in your previous posts if you do not want it shown anymore)
seanie_morris:
Wow, none of those errors show up for me, and the pages do load fine (using FF too). Plus, the icons in the footer are the larger versions.
Remember, when i created the top menu items for the pages FRE, GER, ITA, NED and SWE, I created the page as 'Code', then added the section WYSIWYG for the content. The Code section has the:
--- Code: ---<a href="http://www.websitename.com/wb/pages/french.php"><img src="http://www.websitename.com/wb/templates/bs_naturak/img/flag-france-small.png" alt="French language" width="34" height="34" border="0"></a>
--- End code ---
relevant for each language button I want displayed, but it's not showing the image icon.
All links and pages check out fine in Chrome just now, with no cache on the website in question - I never got any 404 errors! :|
--- Quote ---All country landing pages (like: /wb/pages/fre.php ) are giving a status 500 (Server error), but the pages are served fine.
This points to some server or .htaccess fault.
--- End quote ---
No errors showing up for me, are we looking at the same website? :P
--- Quote ---There are some "lost </div>'s" in the output.
Use Firefox, do Ctrl-U (source view) and look for red </div> lines.
--- End quote ---
Saw those, was just too lazy to comb for them - now fixed.
--- Quote ---A script is loaded that generates a 404 error (not found).
/wb/templates/bs_naturak/js/responsive-slider.js does not exist.
--- End quote ---
That 404 error you speak of should relate to the file ../js/responsive-slider.js which I have corrected (a fault in the template's downloaded files, not my own code).
Thanks for the input Ruud, second pairs of eyes are always handy.
seanie_morris:
--- Quote from: Ruud on August 27, 2015, 11:12:04 AM ---(edit: you can always remove the url in your previous posts if you do not want it shown anymore)
--- End quote ---
I can't, the 'Modify' option expires after only a matter of minutes after a post is submitted!
Ruud:
About the errors:
Use the F12 tools to see the networking errors.
This screen-shot is taken with Windows10 Edge..
It seems to be working fine, but I can imagine the search-engine spiders will think it is not good.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version