Viewing 11 replies - 1 through 11 (of 11 total)
  • Does WP Booklet have an option to deactivate its lightbox?

    Thread Starter estudi33

    (@estudi33)

    Yes. But if I deactive the lightbox option of WP Booklet then it does not open any popup.

    Ok, so then it completely removes the links to large image version too? Hmmm…

    Try adding this to your themes footer.php before the line with wp_footer() or (easier) in a text widget:

    <script type="text/javascript">
    jQuery(document).ready( function() {
        jQuery('a.wp-booklet-popup-trigger').addClass('nofancybox');
    }
    </script>
    Thread Starter estudi33

    (@estudi33)

    Can you tell me where exactly should I place this code?

    This is the footer.php code of my theme:

    <?php
     /**
     * The template for displaying the footer.
     *
     *
     * @package Customizr
     * @since Customizr 3.0
     */
    
      	do_action( '__before_footer' ); ?>
      		<!-- FOOTER -->
      		<footer id="footer" class="<?php echo tc__f('tc_footer_classes', '') ?>">
      		 	<?php do_action( '__footer' ); // hook of footer widget and colophon?>
      		</footer>
        </div><!-- //#tc-page-wrapper -->
    		<?php
        do_action( '__after_page_wrap' );
    		wp_footer(); //do not remove, used by the theme and many plugins
    	  do_action( '__after_footer' ); ?>
    	</body>
    	<?php do_action( '__after_body' ); ?>
    </html>

    Thank you very much for your help

    You could paste it just before the line with <!-- FOOTER --> there. Or maybe better: add a text widget to the footer widget zone or paste it in (what looks like) the theme’s “Colophon” text option.

    Thread Starter estudi33

    (@estudi33)

    I tried pasting the code as text on a widget area but does not work.

    Then I tried inserting the code in footer.php, just before the line with <!– FOOTER –> but has not worked.

    It works only if insert the code this way:

    <?php
     /**
     * The template for displaying the footer.
     *
     *
     * @package Customizr
     * @since Customizr 3.0
     */
    
      	do_action( '__before_footer' ); ?>
      		<!-- FOOTER -->
     		<footer id="footer" class="<?php echo tc__f('tc_footer_classes', '') ?>">
      		 	<?php do_action( '__footer' ); // hook of footer widget and colophon?>
    
      		</footer>
        </div><!-- //#tc-page-wrapper -->
    		<?php
        do_action( '__after_page_wrap' );
    
    <script type="text/javascript">
    jQuery(document).ready( function() {
        jQuery('a.wp-booklet-popup-trigger').addClass('nofancybox');
    }
    </script>
    
    		wp_footer(); //do not remove, used by the theme and many plugins
    	  do_action( '__after_footer' ); ?>
    
    	</body>
    
    	<?php do_action( '__after_body' ); ?>
    </html>

    But the problem is that now the footer disappears.

    In that location you will have to place à

    ?>

    before and a

    <?php

    right after the code snippet.

    Thread Starter estudi33

    (@estudi33)

    Done. The code is now this:

    <?php
     /**
     * The template for displaying the footer.
     *
     *
     * @package Customizr
     * @since Customizr 3.0
     */
    
      	do_action( '__before_footer' ); ?>
      		<!-- FOOTER -->
     		<footer id="footer" class="<?php echo tc__f('tc_footer_classes', '') ?>">
      		 	<?php do_action( '__footer' ); // hook of footer widget and colophon?>
    
      		</footer>
        </div><!-- //#tc-page-wrapper -->
    		<?php
        do_action( '__after_page_wrap' );
    
    ?>
    <script type="text/javascript">
    jQuery(document).ready( function() {
        jQuery('a.wp-booklet-popup-trigger').addClass('nofancybox');
    }
    </script>
    <?php
    
    		wp_footer(); //do not remove, used by the theme and many plugins
    	  do_action( '__after_footer' ); ?>
    
    	</body>
    
    	<?php do_action( '__after_body' ); ?>
    </html>

    It’s correct?
    Now the footer is seen correct but again there is a double popup.
    Have I done something wrong? ??

    Thread Starter estudi33

    (@estudi33)

    Hello,
    Now the footer is seen correct but again there is a double popup.
    Have I done something wrong? ??
    Any idea to solve the problem?

    Thank you very much for your help!!

    Ah that’s my fault. There is an error in the code I gave you. Place a ); at the end to fix that. The javascript should then be:

    jQuery(document).ready( function() {
        jQuery('a.wp-booklet-popup-trigger').addClass('nofancybox');
    });

    Thread Starter estudi33

    (@estudi33)

    Perfect!! Now it works perfectly!!

    Thank you very much!!!!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Double popup’ is closed to new replies.