Support » Plugin: WordPress Calls to Action » CTA not showing

  • BobBalm

    (@bobbalm)


    Hi there,

    First off, compliments on the plugin. It’s exactly what I was looking for!

    Unfortunately, I can’t seem to get it to work. Specifically, I have created a CTA and want to place it under a post I made. I selected it from the menu in the post editor, placed it below the content, then updated/published the post. But it doesn’t show under the post, nothing changes.

    I checked and the CTA itself does show properly in the CTA editor. I’ve also tried a different, standard template thinking maybe something was wrong with the one I created, but the same thing happens: the CTA doesn’t show up after placing it. Am I doing something wrong?

    For reference:
    The page I’m trying to place the CTA on: http://blog.findcircles.nl/cta-test/
    The CTA itself: http://blog.findcircles.nl/cta/testje/

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • I have the same problem. Which other plugin are you using? I’m thinking about a conflict…
    I had installed it in an other site and I don’t have any problem.

    I also had this issue and it appears to be a css class of display:none attached to the CTA that you’ve put in your post.

    Try putting this within the <head></head> tags of your of your header.php or within your blog template file this:

    <script type=”text/javascript”>
    $(function(){
    $(‘.inbound-cta-container, wp_cta_content’).css(‘display’,’block’);
    });
    </script>

    This is a bit hacky and by no means an ideal solution, but may work for you in the short term until the author changes it.

    Plugin Author David Wells

    (@davidwells)

    I see the CTA on http://blog.findcircles.nl/cta-test/

    If its not showing, there is probably some other broken JS on your site.

    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.

    I didn’t have any javascript errors.

    The output is there, it’s just hidden. Here’s what I get:

    <div class="below_content">
        <div id="wp_cta_2436_container" class="wp_cta_container cta_outer_container" style="margin-top:0px;margin-bottom:0px;position:relative;">
            <div id="wp_cta_2436_variation_0" class="inbound-cta-container wp_cta_content wp_cta_variation wp_cta_2436_variation_0" style="display:none; margin:auto; width: 300px; height: auto;" data-variation="0" data-cta-id="2436">
    
                <div id="cta_container">
                    <div id="cta_content_left">
                        <h1 id="main-headline">Test Title</h1>
                        <a id="cta-link" href="http://www.landing-page-url.com">
                            <span class="cta_button">
    			Test Content
    			</span>
                        </a>
                    </div>
                    <div id="cta_content_right">
                        <a href="http://www.landing-page-url.com">
                            <img src="/images/testpicture.png">
                        </a>
                    </div>
                </div>
            </div>
        </div>
    </div>

    The div with the id=”wp_cta_2436_variation_0″ has display:none, which once changed shows up just fine.

    Thanks

    Plugin Author David Wells

    (@davidwells)

    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

    Hi,

    Sorry, I forgot to mention I’ve done this already. I have disabled all of my plugins apart form the calls to action plugin, tested it with several different themes and still have the issue and no console errors.

    I’ll stick to just setting the display for now but hope that might rule a few things out. Please let me know if you find what’s causing it – love the plugin by the way, thanks!

    Plugin Author David Wells

    (@davidwells)

    Post live link to page

    I apologise but I’ve been a bit silly. There are errors that I somehow just blacked out thinking they’ve always been there as console info, but they are in fact errors and caused by the CTA plugin and linked to:

    http://support.inboundnow.com/support/topic/call-to-action-issues/

    Timeout Happened. Page view fired page-tracking.js?ver=3.9.1:408
    Page Revisit page-tracking.js?ver=3.9.1:645
    Session Active page-tracking.js?ver=3.9.1:655

    Was there a fix for this in the end? I don’t seem to have any tables in my DB relating to the CTA plugin. The post suggested they might come from the WP-Config file and whilst the javascript display snippet works for one variation it understandably won’t work for multiple variations (I don’t need them really, so not to big a deal).

    I’m not very familiar with PhP, so laymen’s terms would be appreciated.

    Cheers

    http://itassolutions.co.uk/how-many-katie-hopkins-are-there-in-the-business-world/

    That blog post has two variations enabled. I have disabled the javascript to show the cta.

    Update: It is only showing one variation.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘CTA not showing’ is closed to new replies.