acub
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Customizr] Customizr – White gap between header and slider.As stated in the line above the code window, it needs to be added in the custom CSS panel. You’ll find it on the Customizr page, towards the end of the list on the left.
Forum: Themes and Templates
In reply to: [Customizr] Inject CSS classes into menu itemsForum: Themes and Templates
In reply to: [Customizr] IE bug with linksLink please?
Forum: Themes and Templates
In reply to: [Customizr] Sub Menu items not working in Mobile/Tab devicesThe Tweeter Bootstrap jquery script that toggles the “open” class to your parent containing li doesn’t seem to be working. Reinstalling Customizr might fix this.
Another cause might be a plugin that uses a newer bootstrap library than 2.3.2. Try disabling plugins one by one to see if your submenus start opening again.My advice is to remove the snippet until you find the source of the problem and only apply the snippet after your submenus open on click.
Forum: Themes and Templates
In reply to: [Customizr] responsive menu links not aligned in boxYou need to use media queries to achieve this. Here’s a tutorial on Customizr’s website.
Forum: Themes and Templates
In reply to: [Customizr] Snippets for fixed positioned logo or menu1. Create (or find) bigger flags than the ones used by qtranslate for each of the languages you’re going to use. Mine are 32px x 32px centered both vertically and horizontally. Note that if you use a different size you will need to change the CSS accordingly, so they fit nicely in your box. Save the flags in your child theme folder, as {language_code}.png (example: en.png, it.png, etc…) in a folder named flags.
2. Add this code in your child theme’s functions.php (just above the ending ?> (if that’s how your functions.php ends – if not, just below the last function)add_action ('__before_header', 'qtrans_lang_chooser'); function qtrans_lang_chooser() { ob_start(); echo qtrans_generateLanguageSelectCode('image'); $output = ob_get_contents(); ob_end_clean(); echo $output; }3. Place this code in your style.css of your child theme:
ul.qtrans_language_chooser { background-color: rgba(51, 102, 153,.45); box-shadow: 2px 5px 7px rgba(0,0,0,.21); border-radius: 10px; border: 1px rgba(255,255,255,.5) solid; left: -17px; list-style-type:none; margin: 200px 0 0 3px; padding: 7px 10px 7px 22px; position: fixed; -webkit-transition: background-color linear 200ms; transition: background-color linear 200ms; z-index: 201; } ul.qtrans_language_chooser:hover { background-color: rgba(153,204,255,.65); box-shadow: 3px 8px 10px rgba(0,0,0,.15); } ul.qtrans_language_chooser li.active { display: none; } ul.qtrans_language_chooser li a { height: 32px; width: 32px; }Feel free to play with position and/or colors and/or shadows of normal and :hover states of ul.qtrans_language_chooser.
Finally, add this to the CSS above, for each of your languages, replacing {language_code} with each language’s code:a.qtrans_flag.qtrans_flag_{language_code} { background: url(flags/{language_code}.png) no-repeat; }Example, for english:
a.qtrans_flag.qtrans_flag_en { background: url(flags/en.png) no-repeat; }Upload style.css, functions.php and the flags folder to your child theme and you’re done.
Forum: Plugins
In reply to: [The Events Calendar] Update free translationSorry, I haven’t been specific enough in my question.
I’m not interested in bypassing individual translation strings, but rather the whole .mo file that comes with the plugin. I want to know if that file could be overridden by my own .mo, placed in my theme’s folder, under tribe-events/lang/ (the same way plugin templates get overridden by their modified versions saved in the theme’s folder).
Thank you for taking the time to answer this.
First, I don’t understand what you mean.
Secondly, it has nothing to do with the menu issue discussed in this thread, so you need to start a new one, with a proper, specific name.Please try to use common web terminology, I really don’t understand what you mean by “short code” and “static”. I assume you mean “snippet” and “fixed positioned”, but I’m only wild guessing here.
Forum: Themes and Templates
In reply to: [Customizr] Site transfer and logo vanished.Try uploading your logo with a different filename.
Forum: Themes and Templates
In reply to: [Customizr] Parse error1. Rename your customizr folder through ftp. That will disable the theme and you’ll be able to log into WordPress.
2. Go to themes and activate any other theme.
3. Rename your Customizr folder back.
4. Download the version of Customizr you have initially installed on your website (you can see the version in your themes page) from here. Upload the broken file.
5. Reactivate Customizr.If that doesn’t work, I suggest upgrading Customizr to the latest version or clean re-installing if you already had latest version installed.
Forum: Themes and Templates
In reply to: [Customizr] 6 featured pages with images on front pageYou’re welcome. Please mark as resolved.
I wouldn’t advise on that. Not until we hear what @nikeo has to say on this matter.
Here’s what I think: providing a responsiveness switch is generally viewed as a good design decision and it’s where we’re heading. Probably in a less than a year’s time, it will be a standard feature on all responsive layouts.
Therefore, there’s a good chance that Customizr will implement it soonish, as it’s the most popular responsive free WP theme out there. If my presumptions are right, when this happens, CSS will need to be adapted for it and your quite consistent effort will be rendered useless. So, before you set out for this big task, wait for nikeo’s answer on this. (I just marked the subject for his reading).
If he says this is not going to happen soon, I’ll assist you with guidelines and code overview to make this switch, but I’d more happily do it for theme implementation in a future release so all theme users benefit from it, rather than as a mod for a single user, that’s prone to breaking on future updates of theme’s CSS.
Forum: Themes and Templates
In reply to: [Customizr] Sub Menu items not working in Mobile/Tab devicesIt has to do with the fact that neither of your parent pages have proper links in the menu (one has no link and the other goes to http://X ). This solution applies specifically to those who want to keep the parent links functional.
Replace the custom placeholders you have now with proper pages in your menu and you might solve the problem.If the suggestion above doesn’t solve the problem, please remove the snippet so I can take a look at how your menu looks normally and realize why it’s not working.
The real problem is that, in your installation, the class “open” does not get applied to the parent’s containing li, therefore your submenus do not open for mobiles. I have to see if this also happens without the snippet, or it is caused by the preg_replace.
Forum: Themes and Templates
In reply to: [Customizr] How to center a Page Title?The code to remove the icons is good, but it removes all icons on website, not just on pages. This removes it only on pages:
.page #main-wrapper h1.format-icon:before {content: none;}But the centering… is actually indenting in that code, and it scales erratically with page width. Besides, there’s a big risk that it will affect lists of posts (or other content) displayed on pages (by plugins or custom templates). Here’s how to responsively center the page title and only the page title (with icon or not):
.page h1.entry-title { text-align: center; }Best pov I found on this subject: http://www.webmonkey.com/2013/01/turning-off-responsive-design/
Simplest solution: hooking a class to body, just as I thought it should be done.I never said I can’t do it or that it can’t be done. I just assumed it’s a lot of work.
After sleeping over it, I realized that it’s quite a bit simpler than I initially thought it would: add short class to body (or html, for that matter) (let’s call it rsp). Now all we need is go through all css and append .rsp to every single declaration that’s inside a @media query:
Example:@media (min-width: 980px) { ul.nav li.dropdown:hover a.a-caret + ul.dropdown-menu, ul.nav li.dropdown a.a-caret:hover + ul.dropdown-menu, ul.nav li.dropdown ul.dropdown-menu:hover { display: block; z-index: 1001; } }would have to become:
@media (min-width: 980px) { .rsp ul.nav li.dropdown:hover a.a-caret + ul.dropdown-menu, .rsp ul.nav li.dropdown a.a-caret:hover + ul.dropdown-menu, .rsp ul.nav li.dropdown ul.dropdown-menu:hover { display: block; z-index: 1001; } }After that, all we need is a trigger that toggles .rsp class on/off to body (or html). And the trigger code is above.