hi,
first of all, thanks for the amazing theme.
I need to duplicate the slider image, so I can have two images linking to the same page, and I found the child theme with this code below:
<?php
// Queue parent style followed by child/customized style
add_action( ‘wp_enqueue_scripts’, ‘func_enqueue_child_styles’, 99);
function func_enqueue_child_styles() {
wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );
wp_dequeue_style(‘activello-style’);
wp_enqueue_style( ‘activello-style’,
get_stylesheet_directory_uri() . ‘/style.css’,
array(‘parent-style’)
);
}
/**
-
Featured image slider, displayed on front page for static page and blog
*/
function activello_featured_slider() {
if ( is_front_page() && of_get_option( ‘activello_slider_checkbox’ ) == 1 ) {
echo ‘<div class=“flexslider”>’;
echo ‘<ul class=“slides”>’;$count = of_get_option( 'activello_slide_number' ); // $slidecat =of_get_option( 'activello_slide_categories' ); $query = new WP_Query( array( 'posts_per_page' =>$count, 'post_type' => 'page', 'meta_key' => 'slider_page' ) ); if ($query->have_posts()) : while ($query->have_posts()) : $query->the_post(); echo '<li><a href="'. get_permalink() .'">'; if ( (function_exists( 'has_post_thumbnail' )) && ( has_post_thumbnail() ) ) : echo get_the_post_thumbnail(); endif; echo '<div class="flex-caption">'; if ( get_the_title() != '' ) echo '<h2 class="entry-title">'. get_the_title().'</h2>'; if ( get_the_excerpt() != '' ) echo '<div class="excerpt">' . get_the_excerpt() .'</div>'; echo '</div>'; echo '</a></li>'; endwhile; endif;
echo ‘
echo ’ </div>’;
}
}
Is there a way that I can do this?
Thanks,