WordPress.org

Ready to get started?Download WordPress

Forums

Hatch
[closed] Turn Off Fancybox in Hatch Theme? (5 posts)

  1. xperimenter
    Member
    Posted 1 year ago #

    Please can anyone help to disable Fancybox script that comes pre-installed in Hatch theme? I understand this option is now available in PRO version, but I am not ready to buy it just because of this little problem :)

    I would like more flexibility with Fancybox. Most importantly - to display a photo description in Fancybox window. The are a few WordPress Fancybox plugins that have flexible settings, but pre-installed Hatch Theme Fancybox must be disabled first, otherwise the plugins can not override it.

    Thank you in advance.

    http://wordpress.org/extend/themes/hatch/

  2. kaylamatthews
    Member
    Posted 1 year ago #

    Hey there,

    You would just go to the functions.php and at around line 163 comments out or delete the following:

    wp_register_script( 'hatch_fancybox', get_template_directory_uri() . '/js/fancybox/jquery.fancybox-1.3.4.pack.js', array( 'jquery' ), '1.0', true );
    wp_enqueue_script( 'hatch_fancybox' );

    Then at line 173 comment out the the css directly below the line

    /* Enqueue Styles */

    Then install the "Easy Fancybox" plugin and you should be all set :)

  3. xperimenter
    Member
    Posted 1 year ago #

    Hi kaylamatthews! thanks a lot for your help!

    sorry didn't check my mail for a while ))

  4. thepandarocks
    Member
    Posted 1 year ago #

    I tried to do this as well and it did not turn out well! Please advise! My entire site is now gone! I tried reinstating the original php code and now receive the following error.

    Parse error: syntax error, unexpected '*' in /home/kamer/public_html/wp-content/themes/hatch/functions.php on line 159

    Here is the code, I do not see anything at all on line 159 when viewing in dreamweaver, line 159 is empty but I have highlighted the section below.

    CAN ANYONE PLEASE HELP? SITE IS GONE NOW!

    [Too much code for here]

  5. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    @thepandarocks - Sorry, but you need to start a new thread - this one is very outdated and unrelated to your issue. You can do that here:

    http://wordpress.org/support/forum/how-to-and-troubleshooting#postform

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags