Support » Plugin: Custom Banners » background-image instead of img src?

  • Resolved Alkorr

    (@alkorr)


    Me again, I got your plugin working fine, only 2 problems:

    First my banner is deformed, it’s full screen instead of its initial, smaller width (500). I think it’s due to the fact it’s a background image, not an image. Here’s the code:

    <div class=”banner_wrapper”><div class=”banner banner-430 bottom vert” style=”background-image: url(‘//local/priv/wp-content/uploads/2014/02/banner1.gif’);”><div class=”banner_caption”></div></div></div>

    Plus there’s no link to click, even though I specified a Target URL.

    Thanks!

    https://wordpress.org/plugins/custom-banners/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor richardgabriel

    (@richardgabriel)

    Hey Alkorr!

    You need to specify Call To Action Text. From the description:
    The “Call To Action” (text) of the button. Leave this field blank to hide the call to action button.

    Sorry for not making that more clear!

    Your other issue can be addressed with CSS – use the Custom CSS field of the plugin settings to input whatever settings you need there. Everyone will experience different outcomes, based on where/how they are using the plugin, what images they use, and how their site is coded.

    Thanks!
    Richard

    Thread Starter Alkorr

    (@alkorr)

    Well, I’ve read the Call To Action thing but since I didn’t want any button to be shown beside the banner (‘Leave this field blank to hide the call to action button’) I left it empty.

    I thought once the image was uploaded and the Target URL added, the linked banner was called with the shortcode. I must have missed something then.

    So I added an tag in the Content field but the banner is still not clickable.

    Sorry to annoy you but I couldn’t find any specific info on how the Call To Action works… Thanks for your help!

    Plugin Contributor richardgabriel

    (@richardgabriel)

    Hey Alkorr!

    You aren’t being annoying – currently only the CTA is linked (not the image itself.)

    I will push out an update ASAP that allows the image linked – makes a lot of sense that you would expect it to be.

    Sorry for the confusion!

    Best,
    Richard

    Plugin Contributor richardgabriel

    (@richardgabriel)

    Hey Alkorr!

    Just a quick note – please try the latest release with the Link Full Banner option and let me know what you think.

    Thanks!
    Richard

    Plugin Contributor richardgabriel

    (@richardgabriel)

    Marking this resolved. Let me know if you need anything else!

    Thread Starter Alkorr

    (@alkorr)

    Hi Richard, sorry for not replying you sooner… I updated your plugin but nothing changed with the upgrade. Or maybe I missed something? 🙂

    My banner is still full width and I can’t make it clickable. I’ll have to look further into the CSS code. Do you provide a documentation by any chance?

    Thanks!

    Plugin Contributor richardgabriel

    (@richardgabriel)

    Hey Alkorr!

    There isn’t much CSS to document, but the image size would need to be addressed with CSS, yes.

    The newest update includes an option to make the banner clickable – are you trying this and it isn’t working?

    Thanks!
    Richard

    Plugin Contributor richardgabriel

    (@richardgabriel)

    Hey Alkorr!

    Just wanted to let you know, the 1.2.2 update allows you the option to output the image as an html image tag, in addition to as a background image.

    To do so, use the following syntax:
    [banner id=123 use_image_tag=true]

    I hope that helps!

    Best Regards,
    Richard

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘background-image instead of img src?’ is closed to new replies.