Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Can you link a webpage with the external link?
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.
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
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:
- Create a Child Theme
- Create a folder inside your Child Theme called “js”
-
Copy the functions.js file from the Fixy theme and paste it into your newly created “js” folder
-
Create a “functions.php” file in your Child Theme
-
In the (Child Theme) functions.php file deregister the functions.js file
-
In the (Child Theme) functions.php file register your functions.js file that is within your Child Theme “js” folder
- 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
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();
});
});