WordPress.org

Forums

The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Fixy
[resolved] disable jquery effects for Fixy theme (5 posts)

  1. RealitateaFaraCenzura
    Member
    Posted 2 years ago #

    Hi, How can I disable jquery effects for external links? To open in new window? For this theme http://wordpress.org/themes/fixy

    http://s29.postimg.org/d0ccemn9y/2014_01_01_175611.jpg

    http://s29.postimg.org/k2aa0tqvr/2014_01_01_175625.png

  2. Andrew Nevins
    Forum moderator
    Posted 2 years ago #

    Can you link a webpage with the external link?

  3. RealitateaFaraCenzura
    Member
    Posted 2 years ago #

    Hi, I'm talking about. EX: advertisements. copyright footer link, opens in jQuery, I want to open normally.

    Look at http://wp-themes.com/fixy?TB_iframe=true&width=1233&height=505. Click footer copyright link iTstar,

    Sorry for my English.

  4. Andrew Nevins
    Forum moderator
    Posted 2 years ago #

    A script in the functions.js file is causing the issue. So you need to modify that file, however it must be done in a Child Theme.

    Steps required:

    1. Create a Child Theme
    2. Create a folder inside your Child Theme called "js"
    3. Copy the functions.js file from the Fixy theme and paste it into your newly created "js" folder
    4. Create a "functions.php" file in your Child Theme
    5. In the (Child Theme) functions.php file deregister the functions.js file
    6. In the (Child Theme) functions.php file register your functions.js file that is within your Child Theme "js" folder
    7. Modify your "functions.js" file from within your Child Theme "js" folder

    1. First set up a Child Theme: http://codex.wordpress.org/Child_Themes

  5. itstar
    Member
    Theme Author

    Posted 2 years ago #

    Hi
    delete the current code from fixy/js/functions.js file or make theme comment.


    $('a.external').click(function(event){
    event.preventDefault();
    var address= $(this).attr('href');
    $('body').prepend('<div class="body-overlay-on-image"></div>');
    $('body').append('<div class="iframe-temp-area"><iframe class="iframe-temp" src="'+ address +'"/></div>');
    $('.iframe-temp-area').windowCenter();

    $(".body-overlay-on-image").on("click",function(){
    $(".body-overlay-on-image").remove();
    $(".iframe-temp-area").remove();

    });
    });

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.