Hello,
Can you please share a link to the website where we can test this?
Hello,
There have been no replies to this topic, so I’m marking this as resolved. Please do let us know if you’re still experiencing an issue.
Thread Starter
raqy
(@raqy)
Sorry for disappearing for that long.
I’ll appreciate if you could still look into it.
pls see for example:
/product/vegetables/
where the messages are not displaying – this footer is a page (with King Composer elements) added to all WC pages.
another case:
/homepage-v1-2/
This footer is added as a king composer section to that particular page, where messaging works and the script is there.
Do you have any clue how to address this?
Appreciate your help!
Cheers!
-
This reply was modified 6 years, 1 month ago by
raqy.
Thread Starter
raqy
(@raqy)
Another example:
/treasure-footer/
This page serves also as its footer.
So the same code works when it’s page content and doesn’t work when it is a footer.
Also I’ve tried to add the <script> part with raw code block (the upper textbox of the pair) – at page content- the <script> appears twice. At footer, it appears but still notices are not showing.
I’ve also tried to play with the hooks at the plugin, to no avail. I put it earlier or later at the running sequence. Nothing worked, but sometimes the <script> appears 2-3 extra times π
Any clue?
Cheers!
Hello,
Can you please share the exact code used to add our form?
Thread Starter
raqy
(@raqy)
It was added with the theme mc4wp widget, but your widget produced the same results.
Both widgets were added using king composer.
The page to be used as footer – is a theme feature in the footer template. Do you want me to send this code to you too?
the relevant lines are:
$page_id = get_queried_object_id();
$page_details = get_post_meta( $page_id, 'pustaka_page_details', true );
$disable_footer = ! empty( $page_details['disable_footer'] ) && ( 1 == $page_details['disable_footer'] ) ? 1 : 0;
if ( 0 == $disable_footer ) :
$global_footer = get_theme_mod( 'pustaka_footer_page' );
$footer_page = ! empty( $page_details['footer_page'] ) ? $page_details['footer_page'] : $global_footer;
if ( ! empty( $footer_page ) ) :
$footer_content = get_post_field( 'post_content', $footer_page );
echo do_shortcode( $footer_content );
There is a theme option in customizer to choose the page to be served as footer = ‘pustaka_footer_page’
pls let me know if you need anything else.
Cheers!
Hey @raqy,
I was not able to see any code related to our plugin in the code you shared. I assume the code you shared is a conditional logic to display different footer?
Thread Starter
raqy
(@raqy)
Yes it is.
As I’ve written I’ve used the theme wc4wp element (widget) in kingcomposer.
I’ve also tried your widget and it produced the same result.
I’ve added now to the test page your widget too, under Newsletter.
the code in KC is:
[kc_wp_widget data="eyJtYzR3cF9mb3JtX3dpZGdldCI6eyJ0aXRsZSI6Ik5ld3NsZXR0ZXIifX0=" _id="897803"]
It’s working in page content. Not in footer.
Any idea?
Thread Starter
raqy
(@raqy)
When I use the WP Widgets’ default footer everything is fine, but I really prefer to work with the theme page footer feature.
I really appreciate if you could help me with that.
It seems that the footer logic above is not calling some of your code.
Cheers!
Hey @raqy,
As this is just not working with your theme, it’s really not possible for us to debug each theme. I would recommend contacting your theme support and asking them if they are doing something different. Themes should be made using WordPress guidelines.
Thread Starter
raqy
(@raqy)
I totally understand your point.
Knowing your plugin the best, I’ve thought you can suggest a certain approach to tackle this issue, as the theme developer didn’t quite help me.
I’ve ended up configuring the footer with the footer widgets and not with the theme’s feature of a page footer.
Maybe this is the only “solution” to this issue. I just couldn’t invest anymore time researching this.
For anyone who would like to dig into it, it seems the dynamic_sidebar works with a page and do_shortcode does not.
Cheers!