custom code textlength error if loaded via ajax
-
I’m using the following php in an ajax loaded footer. “Is your theme loading the feed via Ajax” set to true.
<?php echo do_shortcode('[custom-facebook-feed id=mysite num=1 textlength=60]'); ?>
Works fine, when I’m loading the site without ajax. But when I load it via ajax, the textlength is set to auto instead of 60.
The data-char is set,<div id="cff" data-char="60">
but have no effect…Another thing: Is there a way to get rid of the inside the paragraphs.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘custom code textlength error if loaded via ajax’ is closed to new replies.