• Resolved thekjub9

    (@thekjub9)


    there are lot of plugins thay do that … can somebody edit the code
    otherwise the images are too big ??

    in my page

    I use dynamic wight !! so it would be so appriciated if sbd. can help me how to center the image … not start in upper left corner of the image …
    also pls pls pls make the fancy title go away ?? … instead can there be a decent title on top of the excerpt just with bigger font and bolded ?

    https://www.ads-software.com/extend/plugins/promotion-slider/

Viewing 9 replies - 16 through 24 (of 24 total)
  • hi woodent, i’d like to have your help about the use of promoslider_image_size filter.

    i am testing the slider on https://www.1minutesite.com, working good but i am not able to autoresize (enlarging) the images at full slider frame (650px).

    i suppose that filter should help but i have no idea how to use it

    thnx
    enrico

    Plugin Author Micah Wood

    (@woodent)

    @cyberico,

    You would use the filter like this (add the code to a custom plugin or your theme’s functions.php file):

    add_filter('promoslider_image_size', 'my_function');
    function my_function( $image_size ){
        $image_size = 'full';
        return $image_size;
    }

    The image size is actually ‘full’ by default. You could also provide the values: thumbnail, medium and large.

    If the images you have uploaded are smaller than the image size you are trying to apply in your filter, the images will only display the largest size that exists.

    Keep in mind that you can change the default image size for slider images across your entire site without having to use the code above. Just visit the slider options page and use the radio buttons to make a selection.

    Thread Starter thekjub9

    (@thekjub9)

    hi pls you told me that only possibility to change image slider alignment … default is left … is in CSS can you pls show me the lined I have to change > ? also 2lined before ? so I can find that part pls ?

    Plugin Author Micah Wood

    (@woodent)

    @thekjub9 – I don’t recommend overwriting the CSS in the plugin itself. Depending on what your current CSS rules are, you can formulate a more specific rule that would overwrite the existing ones. The new rules can be added to the bottom of your theme’s style.css file.

    Thread Starter thekjub9

    (@thekjub9)

    ok so pls what should I add in style.css to enable centering my images displayed in my promotion slider (now the alignment is left) I want to center it.

    pls write my what and where should I add

    Plugin Author Micah Wood

    (@woodent)

    As long as the width of an image is defined, you can do margin:inherit auto; to center it.

    Thread Starter thekjub9

    (@thekjub9)

    what does it mean as long as ?

    can you past a block of code so i am able to locat it in css style .php ?

    Plugin Author Micah Wood

    (@woodent)

    Try adding this to the bottom of your active theme’s style.css file:

    .promo_slider_background_image img {
        margin-left:auto;
        margin-right:auto;
    }

    Tried it out woodent and works like a Charm! THanks for that css trick.

    [sig moderated as per the Forum Rules. Stop posting links to your site!]

Viewing 9 replies - 16 through 24 (of 24 total)
  • The topic ‘[Plugin: Promotion Slider] image autoresize’ is closed to new replies.