Virtualis
Forum Replies Created
-
Okay, I used this code part
<span style="font-family: Inconsolata, Consolas, Monaco, "Lucida Console", monospace; text-wrap: nowrap;">COMPLIANZ::$cookie_blocker->replace_tags($html);</span>
as
if( class_exists("COMPLIANZ") ) { <span style="font-family: Inconsolata, Consolas, Monaco, "Lucida Console", monospace; text-wrap: nowrap;">$data['content']</span> = <span style="font-family: Inconsolata, Consolas, Monaco, "Lucida Console", monospace; text-wrap: nowrap;">COMPLIANZ::$cookie_blocker->replace_tags( $data['content'] );</span> }
in my ajax function where “data[‘content’]” is my loaded content.
Feel free to correct me if my use of the COMPLIANZ class is wrong.Now, the blocking notice appears but the Google Map script isn’t blocked (because we only replaced the HTML tags).
Is there a way to run Complianz’s script blocking action when these HTML tags are detected?Thank you for your reply.
I’m sorry, I forgot to say that I don’t use any plugin to embed Google Map or to load content with ajax. I created my own ajax function.
When I click on the homepage url, ajax calls a specific template part (with “get_template_part”) containing the div (“#map”) which triggers the script to display the map.
It’s not inside “the_content” from WordPress.
Is there a solution in this case..?Thank you ??
Hi,
Yes, this is my path.
I’ve already see this doc (very helpful) before ask on support forum, but even with this path, my templates aren’t working…I even tried to name my file with “.html” and “.php”, but it’s not working either…
Great ! Thank you !
Hi desgrapador,
Have you tried to replace “language=”javascript” by “type=”text/javascript” ?
Perfect ! Thank you !
I’m currently working in local. Unfortunately, I can’t share any url…
Oh sorry ! I didn’t know.
I’ll do that, thank you for your answer !
- This reply was modified 7 years, 7 months ago by Virtualis.
Hi,
Thank you very much for your help. That’s perfect !
(I just don’t need to display “site rating” and “user rating without stars”, but I know how to do now ! Thank you again !)
Thank you for your help !
But I don’t want the entire review block, I just want to display the total star rating like with this code :
<?php if ( function_exists( 'wp_review_show_total' ) ) wp_review_show_total(); ?>
But this code only display stars. Like I said, I would like to display it like this : ☆☆☆☆☆ 4.5 (site rating) | 3.2 (users rating without stars). Not just : ☆☆☆☆☆.
In fact, it would be wonderful if it can find automatically the ID of the child page too…
Is this possible ?
Sorry if I’m not very clear…
Thank you again !