简体   繁体   中英

How do I make top-links appear in the header on opencart mobile platform

I added some links into my header.tpl and when you look at the site on mobile they are completely missing. the site in question is 'theautoall.com' and the code for example of what I added is:

<li><a href="<?php echo $home; ?>" title="Lots more coming soon!"><span 
class="hidden-xs hidden-sm hidden-md"><strong>SITE CURRENTLY UNDER 
CONSTRUCTION</strong></span></li>

How can I make these appear on mobile device, and should I make the links shorter so they look more clean on mobile?

Check your span styles 'hidden-xs hidden-sm hidden-md' in style sheet. They maybe using have display:none. If so, change this to display:block or remove the span class all together. If you only wish to show this in mobile version only, you will need to add a media query, for example

@media (max-width: 768px) { .hidden-xs, .hidden-sm, .hidden-md

}

The link is not appearing on mobile devices because the file mentioned below has the CSS code in it which is mentioned below:

File: https://theautoall.com/catalog/view/javascript/bootstrap/css/bootstrap.min.css

Code:

>     @media (max-width: 767px)
>     .hidden-xs {
>         display: none!important;
>     }

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM