Forum has been created to help all our customers in properly working our theme. We offer complete help with configuration theme and make default look, just like on our Brandon demo. We don`t offer theme customization.

Before creating a new discussion, please:
1. Check on forum if discussion hasn`t been created before. Use the forum Search on the right.
2. Read carefully the documentation included to package.
If you didn`t find what you need and would like to post a new question click the "Start a New Discussion" button on the right.
4. You can post on forum only after registration (you need purchase code to register) .


NOTE!!! If you are starting a new topic and have got problems with your site and you want us to check what`s wrong please always give url to your site because without that we can`t check what`s wrong. Each case may be different because of your installed plugins, servers or other things.

Image link
  • I would like to know how to make the whole image clickable inside the muffin slider
  • 9 Comments sorted by
  • I modified the file in this way so I got the change I needed

    header-mfn-slider.php


    <?php 
    $slide_args = array( 
    'post_type' => 'slide',
    'posts_per_page' => -1,
    'orderby' => 'menu_order',
    'order' => 'ASC',
    );
    $slide_query = new WP_Query();
    $slide_query->query( $slide_args );

    $slide_post_count = $slide_query->post_count;
    // print_r($slide_query);
    ?>

    <!-- #mfn-slider -->
    <div id="mfn-slider" class="mfn-slider-vertical">
    <div class="swiper-container">
       
        <div class="swiper-wrapper">
        <?php 
        while ($slide_query->have_posts()){
    $slide_query->the_post();
    // slide class - dark
    if( get_post_meta(get_the_ID(),'mfn-post-dark',true) ){
    $slide_class = 'dark';
    } else {
    $slide_class = false;
    }
    $background_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full' );
    if( $link = get_post_meta(get_the_ID(),'mfn-post-link',true) ) { echo '<div class="swiper-slide '. $slide_class .'" onclick="location.href=\'' . $link . '\'" style="cursor:pointer">'; }
    else { echo '<div class="swiper-slide '. $slide_class .'">'; }
    echo '<div class="swiper-background" style="background-image:url('. $background_image_url[0] .');">';
    echo '<div class="vertical-align-middle container">';
    echo '<h6 class="swiper-title">'. get_post_meta(get_the_ID(),'mfn-post-title',true) .'</h6>';
    echo '<h2 class="swiper-desc">'. get_post_meta(get_the_ID(),'mfn-post-text',true) .'</h2>';
    echo '</div>';
    echo '</div>';
    echo '</div>';
    }
        ?>    
        </div>
       
    <div class="swiper-controls"></div>
    </div>
    </div>
  • with these changes that I have written above it was possible to get what I needed, or remove the link button and make the whole image clickable inside the muffin slider.

    if( $link = get_post_meta(get_the_ID(),'mfn-post-link',true) ) { echo '<div class="swiper-slide '. $slide_class .'" onclick="location.href=\'' . $link . '\'" style="cursor:pointer">'; }
    else { echo '<div class="swiper-slide '. $slide_class .'">'; }
  • at the moment the site is off-line, will be online soon I will send you the link, however I can assure you that the change works 100% :)
  • www.platinobet.info ;)