• Resolved mapsmarketing

    (@mapsmarketing)


    Hi there,

    Please see: https://tinyurl.com/2hd4lok3

    Using the ‘Storker’ slider and setting a background image using the ‘featured image’ dynamic tag on the thumbs slider doesn’t work. It’ll work when you set static images, but it does not use the set ‘featured images’ on the posts. Looks to be a bug.

    Can you please advice?

    Thank you

    • This topic was modified 2 years, 3 months ago by mapsmarketing.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Maudud Hossain

    (@maudud)

    Hello,
    Thanks for contact with us, but sorry for the late reply.

    It’s working on our server. Would you please check whether the page featured image set or not – https://prnt.sc/ubs0BvJv_wJ4

    Thanks & Regards,
    Maudud Hossain
    Software Engineer | Bdthemes Ltd.

    Thread Starter mapsmarketing

    (@mapsmarketing)

    Hi @maudud ,

    I can confirm each post in the slider has a set ‘featured image’, however, these are not appearing as thumbnails in ‘thumbs slider’ as shown in my initial screenshot.

    Can you please provide a short video sample of this working for you?

    Thank you very much

    Plugin Contributor Maudud Hossain

    (@maudud)

    Hello @mapsmarketing,
    Thanks for your reply.

    It’s not posts featured image, it’s the own( which page you editing) page featured image. I think no need to sample video, hope this will make you understand.

    Thanks & Regards,
    Maudud Hossain
    Software Engineer | Bdthemes Ltd.

    Thread Starter mapsmarketing

    (@mapsmarketing)

    Hi @maudud

    That doesn’t make much sense at all from a functionality perspective. Why would you show the current page’s featured image for the backgrounds of the thumbnail slides??? You’d be using the feature images of the posts in the thumbnail slides as a preview

    Sounds like this wasn’t really well thought out.

    Do you know what I mean?

    Thank you very much

    Plugin Contributor Maudud Hossain

    (@maudud)

    Hello @mapsmarketing,
    Thanks for your reply.

    We keep the background feature there for a single image. It can be dynamic or static. Actually, it’s complex to show every post-featured image dynamically.

    You may use our other slider for post thumbnails – https://primeslider.pro/demo/flogia-base/

    https://primeslider.pro/demo/knily/

    Thanks & Regards,
    Maudud Hossain
    Software Engineer | Bdthemes Ltd.

    Thread Starter mapsmarketing

    (@mapsmarketing)

    Not complex at all @maudud

    There are several different ways you can achieve this, here’s two:

    1. You could add a switch control to allow users to use the featured images of the individual posts, and also disable background controls in the tabs if this is switcher is turned on.
    2. You could check if featured image option (from the dynamic tags) has been selected from the background group control (you can access these via $settings['__dynamic__']).

    The below example modifies the render_thumbnav which by default shows the post thumbnail for each nav item:

    File: /wp-content/plugins/bdthemes-prime-slider-lite/modules/storker/widgets/storker.php

    public function render_thumbnav()
        {
            $settings = $this->get_settings_for_display();
    
            $this->add_render_attribute(
                'thumb-item',
                [
                    'class' => 'bdt-item swiper-slide',
                    'style' => "background-image: url('" . get_the_post_thumbnail_url( get_the_id(), 'full' ) . "');"
                ]
            );
            ?>
            <div <?php 
            echo $this->get_render_attribute_string( 'thumb-item' ) ;
            ?>>
                <div class="bdt-storker-content">
                    <h3 class="bdt-storker-title">
                        <a href="javascript:void(0);"><?php 
            echo  esc_html( get_the_title() ) ;
            ?></a>
                    </h3>
                </div>
                <div class="bdt-storker-arrow">
                    <a href="<?php 
            echo  esc_url( get_permalink() ) ;
            ?>">
                        <i class="eicon-arrow-right"></i>
                    </a>
                </div>
            </div>
        <?php 
        }

    Anyways, I’ll just extend your Storker widget to allow for the functionality.

    Have a great day

    Plugin Contributor Maudud Hossain

    (@maudud)

    Okay, try that.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Storker thumbs slider background ‘featured image’ dynamic tag not working’ is closed to new replies.