• Hi!

    I have installed a theme called Scylla Lite on my homepage. Originally this theme has a slider on the top of the front page showing “Featured posts”. You have to add stuff to the “Featured post” manually with text, right size image and link, pretty troublesome.

    I want to change the slider to not slide… and only show the latest post with a image of 625px by 250px and its excerpt in the same style as the slider-text (a grey box with white text over image).

    Are there any code-gurus on this forum that are willing to help me with this?

    Some files that should be usefull:
    easyslider.php
    layout1.php

    URL to my homepage

    Sorry about my poor English, hope someone will help me with this 🙂

Viewing 7 replies - 1 through 7 (of 7 total)
  • webriti

    (@priyanshumittal)

    update your easyslider.php to

    [please remember to use the ‘code’ button to mark the code]

    <?php $option =  get_option('scl_options'); ?>
    <div id="slider">
    
    <ul>
            <?php $loop = new WP_Query( array( 'post_type' => 'post', 'posts_per_page' => $option['scl_num_sld'] ) ); ?>
            <?php while ( $loop->have_posts() ) : $loop->the_post(); ?>
    
    <li>
             <div class="slider-content">
    <?php $args = array( 'numberposts' => '1' );
    $recent_post = wp_get_recent_posts( $args );
    ?>
                <?php the_title( '<h2 class="entry-title"><a title="' . the_title_attribute( 'echo=0' ) . '" rel="bookmark">', '</a></h2>' ); ?>
                    <a>"></a><?php the_excerpt(); ?>
                </div>
            <?php the_post_thumbnail(); ?>
                </li>
            <?php endwhile; ?>
            </ul>
    </div>
    Thread Starter maranello2

    (@maranello2)

    Great! Thanks for the fast reply! I will try this when i get home from work.

    webriti

    (@priyanshumittal)

    also do move this easyslider.js file to some other place so as to halt this slider bcs that js is designed to slide the content.Now only one thing remains how to display image in that slider div. Will update you when once its done.

    Thread Starter maranello2

    (@maranello2)

    Now i have replaced the easyslider.php. Not far away from what i wanted, only need the picture to fit better to the box. And after the title i se some coding misplaced: “>.
    I will move the easyslider.js when i get home.

    Thank so so much for the help so far! 🙂

    webriti

    (@priyanshumittal)

    you want to display a picture from your post or any thing nice could help….

    Thread Starter maranello2

    (@maranello2)

    I want to display a picture from the post to fit the box. And i need the title to link to the article.

    Thread Starter maranello2

    (@maranello2)

    Hi, now i have moved the easyslider.js. Then there is just the right size image and title-link to fix.

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

The topic ‘Need some help with custom coding’ is closed to new replies.