Tagged: 

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #243033

    guys how can i use the slider in to a main page with no post views ! example the home page !?
    thanks !

    #243135

    Hi vanukem!

    I’m not sure if understand you correctly. Are you trying to remove the posts below the slider? You can add this at the very bottom of style.css:

    .home #main {
    display: none;
    }

    The Newscast theme is a bit old. You might want to check the latest theme that we have, Enfold.

    Best regards,
    Ismael

    #243539

    thanks Ismail for the quick reply, useful the code but not for my question,hope now is more clear and sorry for misunderstanding ! in the appearance / customize (/wp-admin/customize.php) in the option Front page displays if i choose A static page the slider is not showing in the page ! how can i use static page and have the slider as it works when i choose Your latest posts and is any possibility the slider choose a static page to show (featured image and sample of txt) instant of latest post ?
    thax in advance !

    #244252

    Hey!

    Try to set a static front page (settings > Reading) and open up index.php. Delete the entire code within the file and replace it with the code I uploaded here: http://pastebin.com/raw.php?i=J43KS62H

    Regards,
    Peter

    #244575

    Hi Peter, and thanks for the quick reply
    I changed to static page and i modified index.php. copy entire code you gave me of the theme in Dreamweaver saved and replace it but seems is not working!
    any idea ! ?

    #245894

    Hi!

    I’ve tagged the topic for Peter since I’m not sure what he was trying to do with the change to the index. The gist of it is you would be removing the auto generated content and instead using a regular loop and the_content but typically this kind of customization isn’t something we do through support but if Peter is able to offer it quickly that would be up to him.

    Best regards,
    Devin

    #246388

    Hi!

    Yes, I missed that the static “front page” option will replace index.php with the page.php template. Revert the change, then open up page.php and replace:

    
    get_header(); ?>
    

    with

    
    get_header(); ?>
    
    <?php
    // FRONTPAGE SLIDESHOW
    //
    // check if slideshow should be displayed?
    if($k_option['mainpage']['slider'] != 'none' && (is_home() || is_front_page()) ) :
        ?>
        <!-- FEATURED POST AREA ################################################### -->
        <div id="feature_wrap">
            <!-- ###################################################################### -->
            <div id="featured" class='<?php echo $k_option['mainpage']['slider']; ?>'>
    
                <?php
    
                //check slider and apply size to previe images
                $kimg = array('shortcut' => 'L', 'overwrite' => 'none');
    
                if($k_option['mainpage']['slider'] == 'fadeslider')
                {
                    $kimg = array('shortcut' => 'XL', 'overwrite' => 'none');
                }
    
                // start the loop that gernerates the images
                $loopcount = 1;
                $additional_loop = new WP_Query("cat=".$k_option['mainpage']['feature_cats_final']."&posts_per_page=".$k_option['mainpage']['feature_count']);
                if ($additional_loop->have_posts()) :
                    while ($additional_loop->have_posts()) : $additional_loop->the_post();
    
                        $preview_image = kriesi_post_thumb($post->ID, array('size'=> array($kimg['shortcut'],$kimg['overwrite']),
                            'display_link' => array('none'),
                            'wh' => $k_option['custom']['imgSize'][$kimg['shortcut']]
                        ));
    
                        // Featured Entry:
                        ?>
                        <div class="featured featured<?php echo $loopcount; ?>">
                            <a href="<?php the_permalink(); ?>">
    						<span class='feature_excerpt'>
    							<strong class='sliderheading'><?php the_title(); ?></strong>
    							<span class='sliderdate'><?php the_time('M d, Y') ?></span>
    							<span class='slidercontent'>
    							<?php
                                $content = strip_tags(get_the_excerpt(),'<a><strong><span>');
                                echo $content;
                                ?>
    							</span>
    						</span>
                                <?php echo $preview_image; ?>
                            </a>
                        </div>
                        <?php
                        // end entry
    
                        $loopcount ++;
                    endwhile; endif;
                ?>
    
            </div><!-- end #featured -->
    
            <span class='bottom_right_rounded_corner ie6fix'></span>
            <span class='bottom_left_rounded_corner ie6fix'></span>
    
            <!-- ###################################################################### -->
        </div><!-- end featuredwrap -->
        <!-- ###################################################################### -->
    <?php endif; // end slideshow ?>
    
    

    Cheers!
    Peter

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.