Chris
Forum Replies Created
-
Forum: Plugins
In reply to: [Ads by datafeedr.com] Only Show Ads That Are In Two Specific GroupsThanks, I had the same idea and tried that. It returned no results. I’m going to do some more testing to see what the query returns normally, or maybe I got something wrong. I will review this later today.
Forum: Plugins
In reply to: [Ads by datafeedr.com] Callback Function BrokenActually I figured part of it out. You can not use the default code because it uses the $this variable which is only available within the class.
I know there is a way to refer to the class, but I do not see where the class is instantiated. How do I refer to $this?
It is the exact same code as is found within the output function.
Forum: Plugins
In reply to: [Promotion Slider] Slider hides drop down menu@harrykhan
It could be a number of things. You say it has a simple menu, could it be that that template does not support drop-down sub-menus? Otherwise, it could be the z-index on one of the other div wrappers, or it could be something else entirely different. Start a new topic and post the site address so we can check it out.@all
THIS TOPIC IS SPECIFICALLY FOR ISSUES WHERE THE “SLIDER HIDES DROP-DOWN MENU”. IF THIS IS NOT THE PROBLEM YOU HAVE, PLEASE START A NEW TOPIC! No offence intended, but it can be confusing to others when we post back and forth on unrelated issues.Forum: Plugins
In reply to: [Lightbox Gallery] [Plugin: Lightbox Gallery] Caption overlapping "Image x/y"@valeriacordero, I do not see the problem. I do not see the main menu and I do not see any caption text. Let us know if you have already fixed it.
If this is not related to the original problem posted here, please start your own topic.
Forum: Plugins
In reply to: [Promotion Slider] Slider hides drop down menuNo problem at all, I’m happy that I could help!
Forum: Plugins
In reply to: [Promotion Slider] Slider hides drop down menu@kpahl11: Your theme sets .menu styles around line 101. It sets the z-index to 50. Change that to 101.
The original line:
.menu { position: relative; list-style: none; z-index: 50; }The changed line:
.menu { position: relative; list-style: none; z-index: 101; }Forum: Plugins
In reply to: [Lightbox Gallery] Overlapping textHehe, sorry about that, my link turned out to just be the period at the end. That’s the topic I was talking about.
Forum: Plugins
In reply to: [Promotion Slider] Slider hides drop down menuHappy to help!
The split-second transition is gone for me, looks perfect! Tried it in the latest version of Chrome and in IE9. Older browsers may be different. I’m not familiar with superfish and it’s height setting, there may be another option that works. I stumbled on to that setting when I did a quick search on superfish menus.
Forum: Plugins
In reply to: [Promotion Slider] Slider hides drop down menuPerfect! After looking at the links you gave the Platform theme guys, I see that this theme actually uses z-index quite often. The culprit is actually the #header .outline z-index, which was set to 28 and wraps all of the header and navigation. So no matter what z-index you use for the menu or sub-menu, unless you move the slider down below 27 or the header outline above 99, it wouldn’t work.
Also, just for clarification, Rob was incorrect in saying, “You’re making the z-index number higher, which sends things further back. Lower the number to bring things forward…” You were correct, “the lower z-index is, the further back the element will show.”
I’m surprised these guys do not know their own code that well and couldn’t figure it out. It took me just a few minutes. Here is the code that should fix this:
#header .outline { z-index: 101; }Also, if you want to remove the fade transition, which shows the background text through the sub-menu for a split second, there is a line in the header.php, in the head of the html, that looks like this:
jQuery('ul.sf-menu').superfish({ delay: 100, speed: 'fast', autoArrows: 1, dropShadows: 0 });…change it to include an animation setting like this:
jQuery('ul.sf-menu').superfish({ delay: 100, speed: 'fast', animation: { height:'show' }, autoArrows: 1, dropShadows: 0 });Hi mloga94, can you paste the code you put in your functions.php? You could also paste your current functions.php content on pastebin.com and link to it here.
If you have made no other changes to the functions.php, it might be easiest to upload the original functions.php from the theme download. That should get the wp-admin area running again and then we can figure out the other problems.
If you have made no other changes to any of the theme files, you could also follow linkfr’s advice from the other thread – delete the theme folder through your host’s file manager and re-install the theme. Most of your theme settings should be restored, but check the Menus and Widgets because Menus get reset and Widgets are stored in the Inactive Widgets section of the Widgets page.
Forum: Plugins
In reply to: [Promotion Slider] Slider hides drop down menuYou probably need to set the position:relative and z-index for both the menu and the slider, with the slider z-index set to 10 and the menu z-index set to 101. Post a link and I will take a look.
Based on the code you posted, I do not see where the identifiant class is used, but this might work:
.main_nav { position:relative; z-index:101; } .promo_slider_wrapper { position:relative; z-index:10; }But again, I’m not using this plugin, so I can’t be sure. You may not even need the slider settings if it’s default z-index is less than 101.
@mloga64, like I said on the other topic, you should create a new topic to get the best help. It gets confusing when we are tackling two separate and unrelated problems in the same context.
That being said, the other thread didn’t say anything about putting code in the functions.php. Not sure where you got that from (and again, start a new thread and maybe we can get this figured out). You will probably need to re-upload your theme’s original functions.php (or show us the code and changes).
Forum: Plugins
In reply to: [Promotion Slider] Slider hides drop down menuEDITED
Hi linkfr, I didn’t read everything here, just following mloga94. In the code you posted, try changing the number 10 to 101, like so:
.identifiant{ position:relative; z-index:101; }I’m not sure if this will work, I didn’t look in to this at all, just pieced it together from whats been said. I’m just here because mloga also posted on another unrelated topic I’m following, and I was looking to see if he had started a new topic anywhere and found this topic.
@mloga94, please start a new topic so we don’t interfere with other unrelated questions. I’ve replied on the other topic I’m following.
I see, interesting. The only reason I thought it was specific to the_content is because the plugin I’m using also runs apply_filters on the_excerpt and this doesn’t cause a problem.
Don’t want to hijack the thread, but here is some more info on these [raw] tags, I’d like to figure out what is going on, maybe we can develop a work-around.
Code posted here: http://www.wprecipes.com/disable-wordpress-automatic-formatting-on-posts-using-a-shortcode
Based on a plugin here: http://wordpress.org/support/topic/plugin-remove-wpautop-wptexturize-with-a-shortcode?replies=8
Issues discussed here: http://theandystratton.com/2011/shortcode-autoformatting-html-with-paragraphs-and-line-breaksI know this is an older topic, but I feel the need to jump in here. This is probably not a problem with the plugin – my opinion is that this is a problem with the theme. Other plugins can cause the theme to have the same issues with [raw] tags showing up around all their shortcodes.
In my case, the plugin I have installed shows a post’s content using a shortcode, and during this process it runs apply_filters on the_content, which seems to be the issue. The theme’s [raw] tags are implemented using a filter and applying it to the_content. For some reason they do not like it when other plugins run apply_filters on the_content.
I’m still looking for a solution. Right now I am using an if(is_page()) code to remove the raw filters on specific pages and have replaced the theme shortcodes on those pages with the html they output (mainly [hr_shadow]), but this is a messy solution and has its drawbacks.
@micah
Does the promotion slider plugin run apply_filters on the_content anywhere? If so, is their any chance of understanding what causes this incompatibility?Here is how they implement their raw tags:
function my_formatter($content) { $new_content = ''; $pattern_full = '{(\[raw\].*?\[/raw\])}is'; $pattern_contents = '{\[raw\](.*?)\[/raw\]}is'; $pieces = preg_split($pattern_full, $content, -1, PREG_SPLIT_DELIM_CAPTURE); foreach ($pieces as $piece) { if (preg_match($pattern_contents, $piece, $matches)) { $new_content .= $matches[1]; } else { $new_content .= wptexturize(wpautop($piece)); } } return $new_content; } remove_filter('the_content', 'wpautop'); remove_filter('the_content', 'wptexturize'); add_filter('the_content', 'my_formatter', 99);