• Hi

    Somebody that can help me with this?

    Notice: Undefined index: front_pg in /home/3/d/dugnadshjelp/www/wp-content/themes/enigma-premium/home-slider.php on line 18

    The text comes up over my own text.

    The website is: http://www.dugnadshjelp.no

Viewing 4 replies - 1 through 4 (of 4 total)
  • Could you add the contents of that file to a pastebi snippet and link it here? Then we can see what’s on line 18 that’s causing the problem. It’s probably just missing a reference but I don’t know what that is unless I can see the code.

    Thread Starter dugnadshjelp

    (@dugnadshjelp)

    <!– Carousel –>
    <?php $wl_theme_options = get_option(‘enigma_options_pro’);
    $side_interval = $wl_theme_options[‘side_interval’]; ?>
    <div id=”myCarousel” class=”carousel slide” data-ride=”carousel” <?php if($wl_theme_options[‘side_pause’]==”yes”) { echo “data-pause=’false'”; } ?> data-interval=”<?php echo $side_interval; ?>”>
    <?php $all_posts = wp_count_posts( ‘weblizar_slider’)->publish;
    $args = array( ‘post_type’ => ‘weblizar_slider’,’posts_per_page’ =>$all_posts);
    $slider = new WP_Query( $args );
    if( $slider->have_posts() )
    { $t=1; ?>
    <div class=”carousel-inner”>
    <?php while ( $slider->have_posts() ) : $slider->the_post(); ?>
    <div class=”item <?php if($t==1) { echo ‘active’; } ?>”>
    <?php if(has_post_thumbnail()):
    $defalt_arg =array(‘class’=>”img-responsive”);
    the_post_thumbnail(‘home_slider_thumb’, $defalt_arg);
    endif; ?>
    <div class=”container”>
    <div class=”carousel-caption” <?php if( $wl_theme_options[‘front_pg’]==’parallax’) { ?> style=”top:35% !important” <?php } ?> >
    <div class=”carousel-text”><?php if(the_title(”,”,”)) { ?>
    <h1 class=”animated bounceInRight”><?php the_title(); ?></h1>
    <?php } ?>
    <ul class=”list-unstyled carousel-list”>
    <?php if(get_post_meta( get_the_ID(),’slider_desciption’, true )) { ?>
    <li class=”animated bounceInLeft”><?php echo get_post_meta( get_the_ID(),’slider_desciption’, true ); ?>
    <?php } ?>

    <?php if(get_post_meta( get_the_ID(),’slider_button_text’, true )) { ?>
    ” class=”enigma_blog_read_btn animated bounceInUp” <?php if(get_post_meta( get_the_ID(),’slider_button_target’, true )) { echo “target=’_blank'”; }?> ><?php echo get_post_meta( get_the_ID(),’slider_button_text’, true ); ?>
    <?php } ?>
    </div>
    </div>

    Thread Starter dugnadshjelp

    (@dugnadshjelp)

    “$defalt_arg” Seems to be a typo. i’m guessing it should be “$Default_arg” ? Edit- my apologies, please delete this post.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Problem with slider’ is closed to new replies.