Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #284160

    Is it possible, what I have written in the Header? And how?

    #284175

    Hey sunshineh!

    Please add following code to Functions.php file in Appearance > Editor

    function add_custom_script(){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery( '#header' ).click(function() {
      jQuery( '.single-post .nine.units' ).css('width', '100%').css('border', 'none');
      jQuery( '.single-post .sidebar' ).css('display', 'none');
    });
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_script');

    Regards,
    Yigit

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.