Marventus
Forum Replies Created
-
Forum: Plugins
In reply to: [MultilingualPress] Loading of sitepress.js in frontendHahaha, you are absolutely right! Sorry for the confusion.
About the switch, I’ll definitely pitch the idea to my client: I’m not too fond of WPML but have no choice but to work with it for the time being.
Thanks for your response.
Cheers!Hi John. No worries! The plugin works like a charm so I’m glad my post was of assistance.
About your concern regarding updates, you could define a constant with the plugin version and use it as thever
parameter when enqueueing styles and scripts. That way, the plugin resources’ urls will automatically change when the plugin is updated, ??
Cheers!Forum: Plugins
In reply to: [Firelight Lightbox] Easy Fancybox and Fancybox 2.1.5No pb, RavanH!
Yeah, I figured that may have been the reason, since I had noticed Fancybox 2.0 was released under the Creative Commons Attribution-NonCommercial 3.0.
Oh well, it was worth asking regardless, ??
Take care, and keep up the good work!Forum: Plugins
In reply to: [Video Thumbnails] get_video_thumbnail() function in multiple post pagesActually, if you do
if( is_single() )
it will break the thumbnail generation process in admin pages, so it should be:if( is_single() || is_admin() ) {
Hi, David! That was a super quick update. All the previous warnings are gone, but I’m getting a new one regarding the
$booShowShareCount
variable on line 851.
The error goes away if you do the same thing you did for the$htmlShareButtons
variable on line 819:$booShowShareCount = '';
Hi, David! Thanks for looking into this and coming up with a solution so quickly!
I’ll look forward to the 3.8 update. In the meanwhile, I’ll use “@” to avoid warnings and keep debug mode off just in case.
Thanks!Hi David!
I’m a fellow WP developer, and I too have noticed this issue. The error message is:Notice: Undefined variable: htmlSSBAStyle in C:\xampp\htdocs\blogs\tgi\wp-content\plugins\simple-share-buttons-adder\simple-share-buttons-adder.php on line 438
You can fix this by changing said line from:
$htmlSSBAStyle .= '<style type="text/css">';
to:
$htmlSSBAStyle = '<style type="text/css">';
The dot is not needed since it is the first time you are defining $htmlSSBAStyle.
The same goes for the $htmlShareButtons variable, which is also generating notices in debug mode.
Cheers!
Forum: Plugins
In reply to: [EWWW Image Optimizer] Missing optipng, gifsicle, pngoutAmazing show! They Don’t make them like that no more, ??
Forum: Plugins
In reply to: [EWWW Image Optimizer] Missing optipng, gifsicle, pngoutHi, nosilver4u. I had a hunch it was PHP-related, but I wanted to make sure.
Thanks a lot for the very prompt response.P.S.: Should I call you the “silver nazi”? ??
Forum: Plugins
In reply to: [Ultimate TinyMCE] Problem with popup in Internet Explorer 9 – just at postsHello, there. Unfortunately, we did not code the image map plugin so addressing all the issues it is having will take some time.
In the meantime, I suggest you try a different approach for your image maps, such as the one shown in this JSfiddle. It is a much simpler approach and should be cross-browser compatible (IE9 and IE10 included).Forum: Plugins
In reply to: [Ultimate TinyMCE] 404 File not foundHi cepzik. I believe your problem is related to this thread:
https://www.ads-software.com/support/topic/cant-download-48?replies=9#post-4432112
We are already working on this and should be releasing an update soon. Please keep an eye on that thread for any updates or news.
Thanks!Forum: Plugins
In reply to: [Ultimate TinyMCE] Can't download 4.8Hi guys! We are looking into this. Please hang in tight: we should be able to release a fix very soon.
Thanks, and our apologies for the inconveniences caused.Forum: Themes and Templates
In reply to: Navigation :IE7 browser can not display correctlyI just tried this code in IE7 and other browsers, and it works for me without special ie7 stylesheets:
HTML (with a little PHP for generating the menu items):
<div id="main-nav"> <ul> <?php for( $i=1; $i<=10; $i++) echo "\t\t<li><a href='#' title='Nav Item $i'>Nav Item $i</a></li>\n"; ?> </ul> </div>
CSS:
#main-nav { text-align: left; background-color: #0CB42E; margin: 20px 0 0 0; height: 45px; display: block; box-shadow: 0 18px 20px -6px #0C5C1C; -webkit-box-shadow: 0 18px 20px -6px #0C5C1C; -moz-box-shadow: 0 18px 20px -6px #0C5C1C; } #main-nav ul { list-style: none; } #main-nav ul li { padding: 11px 0; margin-left: 5px; display: block; float: left; position: relative; } #main-nav ul li a { background: transparent; font: 16px Arial, Helvetica neue, sans-serif; padding: 16px; color: white; } #main-nav ul li a:hover { text-decoration: none; background: white; color: #666669; -webkit-transition: background-color .3s ease; -moz-transition: background-color .3s ease; -ms-transition: background-color .3s ease; -o-transition: background-color .3s ease; transition: background-color .3s ease; }
Forum: Themes and Templates
In reply to: Navigation :IE7 browser can not display correctlyYou need to keep playing with your ie7.css stylesheet until you get it working right on IE7. I for one don’t have access to that browser, but you could try smth like this instead:
#main-nav ul li { display: block; float: right; }
If you want your li items to align to the left, change line 3 to:
float: left;
Also, you can use
!important
to make sure your ie7 styles are overriding your main ones.#main-nav ul li { display: block !important; float: right !important; }
If you are going to be customizing your site, you need to learn CSS and what properties you can and can not use in different browsers. This is a good place to start.
Forum: Themes and Templates
In reply to: Navigation :IE7 browser can not display correctlyMy guess is that IE7 is not liking your:
display: inline-block;
declaration. You could try to set it to
inline
and make the necessary adjustments, or load an IE7-specific style-sheet. You have several ways to do this (listed in increasing order of complexity / required proficiency):
1. Via a plugin, such as PHP Browser Detection.
2. Conditional Stylesheets, for which you can follow this neat CSS Tricks article.
3. Looking into the user agent string. You would really need to know what you are doing here, but smth in the lines of (untested):<?php function tekehe_is_ie7() { $out = false; $uas = isset( $_SERVER['HTTP_USER_AGENT'] ) ? strtolower( $_SERVER['HTTP_USER_AGENT'] ) : ''; if ( !empty($uas) && strpos( $uas, "msie 7" ) !== false ) $out = true; return $out; } function tekehe_custom_styles() { wp_register_style( 'tekehe_ie7_styles', get_stylesheet_directory_uri()."/css/ie7.css", false, '', 'all' ); wp_enqueue_style( 'tekehe_ie7_styles' ); } if( tekehe_is_ie7() ) add_action( 'wp_enqueue_scripts', 'tekehe_custom_styles');
That code would go inside your theme’s
functions.php
file.For solutions 2 and 3, I recommend you create a folder called
css
inside your theme or child theme, and inside that folder, a file calledie7.css
where you can add your ie7-specific styles.Inside the ie7.css, I would start with this code:
#main-nav ul li { display: inline; }