Title: adding the manually
Last modified: February 8, 2020

---

# adding the manually

 *  Resolved [raqy](https://wordpress.org/support/users/raqy/)
 * (@raqy)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/adding-the-manually/)
 * Hi,
    My WC4WP form is embedded in a page that functions as a footer using do_shortcode
   which erase the <script> part of the form. I’ve tried to add it via hooks, at
   the head and at the footer (not at the same time), the script do appear there,
   but that didn’t seem to help. The subscription is performed and new registered
   are added, but no messages presented. Is there a way to solve this, besides not
   using this kind of footer? Cheers!
    -  This topic was modified 6 years, 3 months ago by [raqy](https://wordpress.org/support/users/raqy/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fadding-the-manually%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 11 replies - 1 through 11 (of 11 total)

 *  Plugin Contributor [Harish Chouhan](https://wordpress.org/support/users/hchouhan/)
 * (@hchouhan)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/adding-the-manually/#post-12288094)
 * Hello,
 * Can you please share a link to the website where we can test this?
 *  Plugin Contributor [Harish Chouhan](https://wordpress.org/support/users/hchouhan/)
 * (@hchouhan)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/adding-the-manually/#post-12323925)
 * 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](https://wordpress.org/support/users/raqy/)
 * (@raqy)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/adding-the-manually/#post-12411796)
 * 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, 2 months ago by [raqy](https://wordpress.org/support/users/raqy/).
 *  Thread Starter [raqy](https://wordpress.org/support/users/raqy/)
 * (@raqy)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/adding-the-manually/#post-12412791)
 * 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!
 *  Plugin Contributor [Harish Chouhan](https://wordpress.org/support/users/hchouhan/)
 * (@hchouhan)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/adding-the-manually/#post-12413950)
 * Hello,
 * Can you please share the exact code used to add our form?
 *  Thread Starter [raqy](https://wordpress.org/support/users/raqy/)
 * (@raqy)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/adding-the-manually/#post-12418687)
 * 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!
 *  Plugin Contributor [Harish Chouhan](https://wordpress.org/support/users/hchouhan/)
 * (@hchouhan)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/adding-the-manually/#post-12419719)
 * Hey [@raqy](https://wordpress.org/support/users/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](https://wordpress.org/support/users/raqy/)
 * (@raqy)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/adding-the-manually/#post-12422170)
 * 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](https://wordpress.org/support/users/raqy/)
 * (@raqy)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/adding-the-manually/#post-12422214)
 * 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!
 *  Plugin Contributor [Harish Chouhan](https://wordpress.org/support/users/hchouhan/)
 * (@hchouhan)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/adding-the-manually/#post-12424641)
 * Hey [@raqy](https://wordpress.org/support/users/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](https://wordpress.org/support/users/raqy/)
 * (@raqy)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/adding-the-manually/#post-12431687)
 * 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!

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘adding the manually’ is closed to new replies.

 * ![](https://ps.w.org/mailchimp-for-wp/assets/icon-256x256.png?rev=1224577)
 * [MC4WP: Mailchimp for WordPress](https://wordpress.org/plugins/mailchimp-for-wp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mailchimp-for-wp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mailchimp-for-wp/)
 * [Active Topics](https://wordpress.org/support/plugin/mailchimp-for-wp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mailchimp-for-wp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mailchimp-for-wp/reviews/)

 * 11 replies
 * 2 participants
 * Last reply from: [raqy](https://wordpress.org/support/users/raqy/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/adding-the-manually/#post-12431687)
 * Status: resolved