acub
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Customizr] Customizr & Bootstrap 3?The theme uses bS 2.3.2. Upgrading to bS 3+ has been discussed more than once. While @nikeo is the only one who can give you an official answer in this matter, upgrading bS is not as easy as upgrading WP or a WP theme and might require a lot of core changes in the theme.
I’m no expert in building themes, but from my knowledge it would be easier to build a brand new theme (Czr+bS3), different from Customizr, than upgrading bS for the current theme. However, I have seen coding wonders from Nicolas and having bS3 on Customizr is not out of the question, unless he says he won’t do it.
We are aware that bS 2.3.2 limits the use of this theme together with WP plugins that use bS 3+ libraries and we consider it a pretty big issue.
Replace
<div class="<?php echo tc__f( '__screen_layout' , tc__f ( '__ID' ) , 'class' ) ?> article-container">with
<div class="span9 article-container">and you’re good to go.
You’re welcome.
Forum: Themes and Templates
In reply to: [Customizr] Show Author Avatar in PostsIThe function you’re after is get_avatar. Depending on where you want it to show up, you should add something like this:
<?php echo get_avatar( get_the_author_meta('ID'), $size = '50'); ?>to the output of some element in your post template, where 50 is the size of the avatar image in pixels (feel free to change it).
Normally you should add this using an action hook in functions.php of your child theme, not by modding your post template. This way your modification will not be affected by future theme updates.
What you need to do is change
<div class="span12 article-container">into
<div class="span9 article-container">Give me a pastebin of your current template and I’ll tell you where and what to change.
@afjsystem: how do you know it is a plugin that’s causing this? Plugins are one easy way to inject code in websites, but I think it’s not safe to assume it’s a plugin until you determine precisely which one it is.
Now, getting to the real problem: @greatsb, could you provide a link to your website?
Thank you.
Also, try to check if this is the only website on which you get nasty adds. If it’s not, your device or the browser of your device might be infected, and it might have nothing to do with the website (the code might get injected in the page by the browser itself). If you determine the injection happens somewhere on the server, try disabling all your plugins and see if the problem still persists. If it stopped, enable them one by one until you find the culprit.
Forum: Themes and Templates
In reply to: [Customizr] CSS for changing font size on postsActually, using the .post selector might also affect the font size in headers and meta information (author, date, tags, category, etc). If you only want to enlarge the post paragraphs you should use .entry-content and .entry-summary as your CSS selectors:
.entry-content, .entry-summary { font-size: 1.2em; }Depending on what you’re after, you might also play with font-weight and line-height properties.
@bigmacontrack: The function you’re looking for is qtrans_generateLanguageSelectCode($type), where $type can have any of these values: image|text|both|dropdown. “both” means flag+text. Depending on $type, this will either generate an unordered list with the flags or a dropdown (options/select).
Now all you need to do is place this into your pages, where you want it, using a WP or theme hook. You can use any hook you want, just make sure it is called in your theme on the pages you want the language chooser displayed. For example, if you want the selector to be the first thing rendered to your page, you can use get_header as your action hook, adding this code to your functions.php (preferably in your child theme):
add_action('get_header', 'add_my_language_chooser'); function add_my_language_chooser() { if (function_exists('qtrans_generateLanguageSelectCode')) qtrans_generateLanguageSelectCode('both'); }As you might notice, this only outputs the selector if qtranslate is present and activated (so the function exists). If it doesn’t, nothing happens.
So the above code will output something similar to:
<ul class="qtrans_language_chooser" id="qtranslate-chooser"> <li class="active"> <a href="http://test.websiter.ro/blog/" class="qtrans_flag_ro qtrans_flag_and_text" title="Română"><span>Română</span></a></li> <li> <a href="http://test.websiter.ro/blog/?lang=en" class="qtrans_flag_en qtrans_flag_and_text" title="English"><span>English</span></a></li> </ul>, depending on the languages you have installed. Feel free to use the classes and ids from that code to style up the look of your language chooser. For example, if you want to hide the active language from the selector, use
#qtranslate-chooser .active {display: none;}Good luck.
Forum: Themes and Templates
In reply to: [Customizr] DEFAULT FONT OF THE LOGOHere’s the CSS for it:
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 40px; font-weight: bold;At the time of this post I have been able to google up options to download it for free, but I’m not sure downloading it for free or using it is completely legal. However, that’s your problem/choice.
Forum: Plugins
In reply to: [mqTranslate] user role related notice of mqtranslate autodisablingFound the problem. I’m using iThemes Security plugin and one of the options is to declare bogus WP version number. However, it only does it for users other than admin, so that’s why I didn’t notice this before.
So this option needs to be disabled in iThemes Security on websites running mqTranslate that have authors and editors.
Funny. And a bit embarrassing.
Short answer: that was the cause.
Longer one: at the owner’s request I’ve made a function that was disabling the “disable visual editor” from user profile and also made a custom function that was specifically setting “Disable visual editor” to true upon saving user profile. This was like 3 years ago and I completely forgot about it.
When I reverted to twenty-fourteen I never checked the user profile, only the page edit screen.
Thank you.
🙂
_______________On a sidenote, I’d like to further express my gratitude for this fork of qtranslate and let you know that if you need a Romanian translator for .po/.mo files of your current and future plugins I am here.
With all plugins disabled, twenty-fourteen active and browser cache manually cleared I do not see visual/text tabs on page and posts edit screen. So I guess that’s why mqTranslate cannot find TinyMCE.
For now I’ve just downgraded that particular website and I hope some future WP release will fix this.
I’ll mark this resolved, as it doesn’t seem to be directly related with mqTranslate, it’s just a symptom of another problem.
Forum: Themes and Templates
In reply to: [Customizr] Featured page text disappearingI can see the text under your bubbles. The only one that doesn’t actually have a text is the middle one, which has three dots as text.
If, on the contrary, you want to hide the text and only display the bubbles, either input
in the textbox. Or you could always add this to your custom CSS:
.widget-front p[class^="fp-text-"] {display: none;}Forum: Themes and Templates
In reply to: [Customizr] Duplicate Post TitlesPlease don’t forget to mark it as such. Thank you.
Forum: Themes and Templates
In reply to: [Customizr] How to increase logo sizeThere’s a missing menu in that gap. If you don’t want to use a menu for your website, just add
.navbar-wrapper { display: none; }to your CSS.
If you want the logo div to be glued to the slider, add this line to the one above:.tc-header .brand a { margin-bottom: 0; }If you want the header image to match the slider width, you need to add:
a.site-logo img { padding: 20px; background-color: #3a7f3e; overflow: hidden; } @media (min-width: 768px) and (max-width: 979px) { a.site-logo img { width: 684px; } } @media (max-width: 767px) { a.site-logo img { width: 95%; } a.site-logo { background-color: #3a7f3e; overflow: hidden; } }That’s pretty much it.
However, I do not recommend adding your slogan/tagline as a picture. If you leave it as text search engines will show it next to any search result that matches content on your website.
Forum: Themes and Templates
In reply to: [Customizr] Duplicate Post TitlesThere’s nothing in there that causes your problem. But do remove line 18. It’s safer not to exit php mode before eof of pure php files.
Getting back to the problem: have you copied any other files from Customizr to your child theme and made mods to them? If so, which ones?
My wild guess is you have copied “/parts/class-content-post.php” from parent to child and messed it up a bit. You should take a look at the original and try to make your mods again. Before you do that, just to check if that’s the cause, rename the one in child theme, so the one in the parent theme gets loaded instead.