CaliVet
Forum Replies Created
-
Forum: Plugins
In reply to: [WordPress Calls to Action] CTA not showingI 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:
https://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:655Was 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
https://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.
Forum: Plugins
In reply to: [WordPress Calls to Action] CTA not showingHi,
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!
Forum: Plugins
In reply to: [WordPress Calls to Action] CTA not showingI 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="https://www.landing-page-url.com"> <span class="cta_button"> Test Content </span> </a> </div> <div id="cta_content_right"> <a href="https://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
Forum: Plugins
In reply to: [WordPress Calls to Action] CTA not showingI 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.