• I decided I didn’t like the accordian slider I had installed so I deleted the appropriate code from my child theme. Then I followed the instructions to put a Customizr slider in and it isn’t working. Could I have messed with any of the Customizr code? I thought it was in the parent theme, so I was safe.

    This is my site.

Viewing 7 replies - 16 through 22 (of 22 total)
  • Thread Starter JodieRD

    (@jodierd)

    There’s a Facebook Page Publish app but it does say Activate so it’s inactive. Should I delete it to be sure?
    What else could it be?

    No, don’t delete it.

    If your functions.php doesn’t contain any code that relates to this and all your plugins are deactivated, and your cache was cleared(?), then it looks like you may have modified core Customizr code.

    Oh wait, there’s another possibility. What other files do you have in your child theme? Are there any other php files in there? They will overrule Customizr files with the same name.

    Thread Starter JodieRD

    (@jodierd)

    Hee hee yes, header.php under my child theme.

    I didn’t clear my cache. How do I do that?

    Paste your header.php on pastebin. It’s likely to be the cause of your slider problem.

    If you don’t know how to clear your cache, then you may not even have a cache. I was just checking.

    The header.php will likely be your problem. Reactivate everything else and let’s see what’s in there.

    Thread Starter JodieRD

    (@jodierd)

    Aha! And there’s a facebook reference in there.
    (Hope I’m inserting this correctly.)

    <?php
    /**
     * The Header for Customizr.
     *
     * Displays all of the <head> section and everything up till <div id="main-wrapper">
     *
     * @package Customizr
     * @since Customizr 1.0
     */
    ?>
    <!DOCTYPE html>
    <!--[if IE 7]>
    <html class="ie ie7" <?php language_attributes(); ?>>
    <![endif]-->
    <!--[if IE 8]>
    <html class="ie ie8" <?php language_attributes(); ?>>
    <![endif]-->
    <!--[if !(IE 7) | !(IE 8)  ]><!-->
    <html <?php language_attributes(); ?>>
    <!--<![endif]-->
    <?php tc__f('rec' , __FILE__ , __FUNCTION__ ); ?>
    
    	<?php do_action( '__before_body' ); ?>
    
    	<body <?php body_class(); ?> itemscope itemtype="https://schema.org/WebPage">
    
    		<?php do_action( '__before_header' ); ?>
    
    	   	<header class="tc-header clearfix row-fluid" role="banner">
    
    			<?php do_action( '__header' ); ?>
    
    <!-- Facebook Conversion Code for FB Checkouts -->
    <script>(function() {
      var _fbq = window._fbq || (window._fbq = []);
      if (!_fbq.loaded) {
        var fbds = document.createElement('script');
        fbds.async = true;
        fbds.src = '//connect.facebook.net/en_US/fbds.js';
        var s = document.getElementsByTagName('script')[0];
        s.parentNode.insertBefore(fbds, s);
        _fbq.loaded = true;
      }
    })();
    window._fbq = window._fbq || [];
    window._fbq.push(['track', '6019163291035', {'value':'0.00','currency':'USD'}]);
    </script>
    <noscript><img height="1" width="1" alt="" style="display:none" src="https://www.facebook.com/tr?ev=6019163291035&cd[value]=0.00&cd[currency]=USD&noscript=1" /></noscript>         
    
    		</header>

    Deleted the entire file (saved it to a Word doc) and the slider is working.

    Reactivated plugins and updated those that had updates, and all is well.

    Thank you for spending precious time helping me. I learned a lot. The kindness of strangers!

    You did well to delete header.php from your child theme, because it’s not future-proof to add the code like that (as you’ve found out).

    I don’t know what that code does (apart from knowing that allows facebook to track everyone around the web, of course). If you want to add it back to your site then you can add the following in your functions.php:

    // Facebook Conversion Code for FB Checkouts
    add_action('wp_head','my_facebook_script');
    function my_facebook_script() {
        ?>
            <script>(function() {
              var _fbq = window._fbq || (window._fbq = []);
              if (!_fbq.loaded) {
                var fbds = document.createElement('script');
                fbds.async = true;
                fbds.src = '//connect.facebook.net/en_US/fbds.js';
                var s = document.getElementsByTagName('script')[0];
                s.parentNode.insertBefore(fbds, s);
                _fbq.loaded = true;
              }
            })();
            window._fbq = window._fbq || [];
            window._fbq.push(['track', '6019163291035', {'value':'0.00','currency':'USD'}]);
            </script>
        <?php
    }

    Thanks for the thanks ??

    Thread Starter JodieRD

    (@jodierd)

    I’ll just leave it out.

    THANKS AGAIN!!!

Viewing 7 replies - 16 through 22 (of 22 total)
  • The topic ‘Missing Slider’ is closed to new replies.