Forum Replies Created

Viewing 4 replies - 16 through 19 (of 19 total)
  • 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!

    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!

    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 5 years, 1 month ago by raqy.

    Hi,
    I’ve been incorporating this plugin today to my child theme and it seems that the JS is not functional (I did properly deregister the original and enqueue this one). The WC original is partially functional when active. I hope I didn’t miss anything.

    The reason for incorporating it into my child theme and not using it as a plugin was because I wanted to add the price for each variation next to its name which I’ve managed to do.

    Hope you can find a solution soon.
    Cheers!

Viewing 4 replies - 16 through 19 (of 19 total)