Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
#35
|
||||
|
||||
Do not use the theme switcher for a live site.
Do not use the theme switcher on a live site. Do not use the theme switcher on a live site. It exists merely as a tool to preview different Bootstrap themes on your website. I shouldn't have to explain why this is a bad idea. Things shouldn't flicker if you don't use it. Things flicker because it loads the default css first, then whatever one is selected on the switcher. On every. Single. Page. Load. Don't use it, it's for preview decisions only! If you were wanting to use a different Bootstrap color theme, then you'll want to change the link to the Bootstrap css file in header.tpl. It's this line: Code:
<!-- / / / / / / / / / BOOTSTRAP 3 --> <link href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet" title="bootstrap"> Either change it to file hosted on a CDN (this link should have all the ones from the theme switcher and maybe more): Code:
<!-- / / / / / / / / / BOOTSTRAP 3 USING "SANDSTONE" --> <link href="https://maxcdn.bootstrapcdn.com/bootswatch/3.3.7/sandstone/bootstrap.min.css" rel="stylesheet" title="bootstrap"> Code:
<!-- / / / / / / / / / BOOTSTRAP 3 USING YOUR OWN BOOTSTRAP--> <link href="{$home}{$temp}{$theme}/NAME_OF_YOUR_BOOTSTRAP.css" rel="stylesheet" title="bootstrap"> It should look like this: PHP Code:
PHP Code:
And, in the end, I can only say this: DON'T USE THE THEME SWITCHER ON A LIVE SITE. Mostly because of the flickering issue. -- To be honest, the real reason I'm dropping support for the theme switcher is because the directions just aren't clear for adding custom code. I don't think you're doing anything particularly wrong, just that the code is being told "if the user clicks on an element with a class of wubbie..." but none of the html you added has a class of wubbie. None of the examples have a class name that corresponds with their theme name, but then again, they didn't need one when I made the theme switcher. I'm not active enough to pinpoint the exact problem, and instead I provided alternatives that don't use the theme switcher. Maybe this could work, but maybe it just won't: Code:
<li><a href="#" class="wubbie" rel="wubbie"><i class="icon-fixed-width icon-pencil"><\/i> Wubbie Forest <\/a><\/li>
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it. Last edited by Kyttias; 08-12-2016 at 10:20 AM. |
Tags |
bootstrap, jquery, mobile-first, responsive |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Bootstrap [AdminCP version] | Kyttias | Templates and Themes | 15 | 03-12-2021 07:07 PM |
Basic Browser Game Tutorial using Smarty and Bootstrap | Kesstryl | Programming and Game Development | 3 | 10-29-2014 11:15 PM |
I created a responsive template | audition | Questions and Supports | 0 | 02-01-2014 06:02 PM |
Request - Responsive Themes | Kesstryl | Templates and Themes | 4 | 01-29-2014 11:21 PM |
Responsive design | Kesstryl | Suggestions and Feature Requests | 5 | 03-06-2013 03:34 PM |
What's New? |
What's Hot? |
What's Popular? |