• I’ve created a CTA, published it, previewed it (it looks OK. It’s just a single image).

    I then added the ‘Call to Action Static Widget’ to my sidebar and selected the CTA I just created. I made sure visibility settings was OK.

    Saved it, and refreshed front-end. Nothing shows. So I viewed the source, and I can see the CTA HTML, but it includes inline CSS that’s hiding it.

    <div id="wp_cta_1844_variation_0" class="inbound-cta-container wp_cta_content wp_cta_variation wp_cta_1844_variation_0" style="overflow: hidden;display:none; margin:auto; width: 225px; height: 200px;" data-variation="0" data-cta-id="1844"><div class="wp-cta-badfocus">
    	<!-- CTA code here -->
    </div></div>

    If I remove that inline CSS from inspector, it displays as expected.

    Why is this happening?

    I tried previewing a different theme as well, and it as the same thing.

    Thanks for your help.

    https://wordpress.org/plugins/cta/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author David Wells

    (@davidwells)

    Sounds like you have a javascript error caused by another plugin or by your theme.

    To check for javascript errors go to the screen you are having the issue with and follow this these steps http://docs.inboundnow.com/guide/debugging-javascript-errors/ and this video:

    Report back what you see.

    Also post a link and I can have a look.

    I’m having this same issue. I can see them in dev tools, but they are loading with display:none inline.

    Example: http://lhfs.loftyword.com/mortgage-center

    I have two loaded in the sidebar: one dynamic, one static. No JS errors on the page. I also tried using the shortcode, and tested every other way I could think of. Normal sidebar widgets work correctly.

    If you locate the div ID and add that to the custom CSS with ‘display: block!important’ it shows up, but that’s more of a hack.

    It also seems to be a bit unpredictable. On some pages it’s messing up the padding and text alignment as well. Will probably be deleting the plugin soon and use an alternative so I can finish the project.

    Plugin Author David Wells

    (@davidwells)

    Looks like there are deeper problems with your site.

    The call to action tool isn’t rewriting the links for tracking.

    Sounds like a plugin/theme conflict.

    To test for a theme conflict:

    1. Activate default Twenty Ten, Eleven, Twelve, or Thirteen theme
    2. Check to see if the issue still occurs
    3. If the issue does not occur after having activated the default “Twenty” theme, your theme is causing a conflict with calls to action.

    To test for a plugin conflict:

    1. Deactivate ALL plugins
    2. Activate Calls to Action
    3. Check to see if the issue occurs

    If the issue does not occur, one (or more) of your plugins is causing a conflict with Calls to action.

    To determine which plugin(s) is causing the conflict, follow these steps:

    1. Activate each plugin one by one
    2. Check to see if the issue occurs after each plugin is activated
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘CTA in sidebar display:none – why?’ is closed to new replies.