go41

Re: dropdown menu disappears behind jdGallery :: Reply by nuphoria

von Joern am 13. Okt. 2011 | Keine Kommentare

Hi,
Thanks for having a look at the site. I have used the third option n posted it below the site title. However i still have one problem (a little off topic): when the site is loading, the content of the slider are shown one below the other, which is overlapping the whole blog. Once its loaded its all normal. Is there any fix for this?
Here is the code for the slider:
<?php

/*

Plugin Name: WP Featured Content Slider

Plugin URI: http://www.iwebix.de/featured-content-s … ss-plugin/

Description: This Plugin is used to show your featured Posts/Pages with thumbnails in a nice slider.

Version: 2.1

Author: Dennis Nissle, IWEBIX

Author URI: http://www.iwebix.de/

*/
/* options page */
$options_page = get_option(’siteurl‘) . ‚/wp-admin/admin.php?page=wp-featured-content-slider/options.php‘;
function slider_options_page() {

add_options_page(‚Featured Content Slider Options‘, ‚Featured Content Slider‘, 10, ‚wp-featured-content-slider/options.php‘);

}
add_action(‚admin_menu‘, ’slider_options_page‘);
function add_feat_scripts() {

if ( !is_admin() ) {

wp_register_script(‚jquery.cycle‘, get_bloginfo(‚url‘) . ‚/wp-content/plugins/wp-featured-content-slider/scripts/jquery.cycle.all.2.72.js‘, array(‚jquery‘), ‚1.3‘ );

wp_enqueue_script(‚jquery.cycle‘);

}

}
add_action(‚wp_enqueue_scripts‘, ‚add_feat_scripts‘);
function cut_text_feat($text, $chars, $points = "…") {

$length = strlen($text);

if($length <= $chars) {

return $text;

} else {

return substr($text, 0, $chars)." ".$points;

}

}
add_action("admin_init", "feat_init");

add_action(’save_post‘, ’save_feat‘);
function feat_init(){

add_meta_box("feat_slider", "Featured Content Slider Options", "feat_meta", "post", "normal", "high");

add_meta_box("feat_slider", "Featured Content Slider Options", "feat_meta", "page", "normal", "high");

}
function feat_meta(){

global $post;

$custom = get_post_custom($post->ID);

$feat_slider = $custom["feat_slider"][0];

?>

<div class="inside">

<table class="form-table">

<tr>

<th><label for="feat_slider">Feature in Featured Content Slider?</label></th>

<td><input type="checkbox" name="feat_slider" value="1" <?php if($feat_slider == 1) { echo "checked=’checked’";} ?></td>

</tr>

</table>

</div>

<?php

}
function save_feat(){

if ( defined(‚DOING_AUTOSAVE‘) && DOING_AUTOSAVE )

return $post_id;

global $post;

if($post->post_type == "post" || $post->post_type == "page") {

update_post_meta($post->ID, "feat_slider", $_POST["feat_slider"]);

}

}
function insert_feat($atts, $content = null) {

include (ABSPATH . ‚/wp-content/plugins/wp-featured-content-slider/content-slider.php‘);

}

add_shortcode("featslider", "insert_feat");
$img_width = get_option(‚img_width‘);
if(empty($img_width)) {

$img_width = 320;

}
$img_height = get_option(‚img_height‘);
if(empty($img_height)) {

$img_height = 200;

}
if (function_exists(‚add_image_size‘)) {

add_image_size( ‚feat_slider‘, $img_width, $img_height, true );

}
function get_wp_generated_thumb($position) {

$thumb = get_the_post_thumbnail($post_id, $position);

$thumb = explode(""", $thumb);

return $thumb[5];

}
//Check for Post Thumbnail Support
add_theme_support( ‚post-thumbnails‘ );
?>

(von: nuphoria)

Hier noch 15 weitere Ergebnisse dieses Threads:

dropdown menu disappears behind jdGallery

3. Sep. 2009 (von: master)

you work on a site using jdGallery (myGallery) or any Dynamic Content Gallery your drop down menu might not display. I looks like it's behind the gallery.The dropdown menu is working, however it goes behind your featured content gallery!Using the…

Re: dropdown menu disappears behind jdGallery :: Reply by Annie

22. Sep. 2011 (von: Annie)

Hi Joern!I have this problem. The first 5 lines work, after that it goes "behind".I have tryed to do what you recomend here, but it dosn´t help.You see my drop-down menu on style.css here, what should I do?Best regards Annie/*…

Re: dropdown menu disappears behind jdGallery :: Reply by Joern

22. Sep. 2011 (von: Joern)

Annie, I can't see your site, get redirected to login..Anyway, I had a look at colorlabs arthemia-premium demo. There they have these #page-bar .. entries in style.css, but the menu on top is not in a div page-bar so the…

Re: dropdown menu disappears behind jdGallery :: Reply by Annie

24. Sep. 2011 (von: Annie)

sorry, now you see it here: www.familjan.fo Weiterlesen →

Re: dropdown menu disappears behind jdGallery :: Reply by Joern

24. Sep. 2011 (von: Joern)

very difficult, it's late now, maybe it helps to change in madmenu.css this entry:#madmenu li ul ul { margin: -26px 0 0 154px; }to#madmenu li ul ul { margin: -26px 0 0 154px; width: 154px; }somehow the sooperfish.js writes after…

Re: dropdown menu disappears behind jdGallery :: Reply by Annie

25. Sep. 2011 (von: Annie)

Hi Joern!Neither worked Thanks anyway!Annie Weiterlesen →

Re: dropdown menu disappears behind jdGallery :: Reply by Joern

25. Sep. 2011 (von: Joern)

I hope you refreshed the browser nore than once only, the browser might cache css or .js files and values.two more things you might try1. in jquery.sooperfish.jschange:dualColumn : 6, //if a submenu has at least this many items it will…

Arthemia background image

3. Okt. 2011 (von: ysan)

Hi,First of all... this is a GREAT website. It has helped me a lot in my quest to change the Arthemia WP theme. This should be an easy question : How to put a background image in the Arthemia theme.…

Re: Arthemia background image :: Reply by master

3. Okt. 2011 (von: master)

Hi Y..a background image for body should display 'around' your site.see one of my last Arthemia sites http://www.rcnetz.comIt's using in style.css this:body{font:100% Arial,Helvetica,sans-serif; background:#FFF url(images/bodybg.jpg) repeat-y center to... Weiterlesen →

Re: Arthemia background image :: Reply by ysan

3. Okt. 2011 (von: ysan)

Hi Joern,this is my codeCode:body {   font: 100% Arial, Helvetica;   background: #fff url(images/background.jpg) center center;   color: #333;   }and it seems to work. I must have done something wrong (my first w... Weiterlesen →

Re: dropdown menu disappears behind jdGallery :: Reply by nuphoria

8. Okt. 2011 (von: nuphoria)

Hi Joern,Having similar issues.My site: http://nu-phoria.com/Im currently using Twenty Eleven theme and have got the WP Featured Content Slider below the navigation menu. If you look at the category "DJ Sets", the last sub-category is going behind the Slider. I…

Re: dropdown menu disappears behind jdGallery :: Reply by master

8. Okt. 2011 (von: master)

Hi, it looks like you moved the slider up above the menu bar.that's a solution, but now the slider covers your header (title and description) , which is still loading but not to see.you should not put that code into…

Re: dropdown menu disappears behind jdGallery :: Reply by Joern

13. Okt. 2011 (von: Joern)

I realized that. Looking on the source-code of your site I see that the css for #featured_slider is loading very late. Actually jquery expects to get the styles before it can modify it.So by using jQuery to modify CSS, you…

Re: dropdown menu disappears behind jdGallery :: Reply by nuphoria

13. Okt. 2011 (von: nuphoria)

Hi Joern,Thanks for your prompt reply. I used the overflow:hidden command and it works like a peach. Thanks alot! I'm new to these sort of coding, so your help is really appreciated. Are you able to assist with Facebook plugins?…

Re: dropdown menu disappears behind jdGallery :: Reply by Joern

13. Okt. 2011 (von: Joern)

I got no idea about facebook plugins ..did you get how dead-slow your site is loading? One reason is this likebox plugin.(Caching will not help with scripts loading lot's of stuff externally)With a plugin like this you transfer your traffic…

Autor:

Du findest mich auch auf Google+, Twitter und Facebook!

Schreibe einen Kommentar

Pflichtfelder sind mit * markiert.


weitere forum Beiträge: