- This topic has 11 replies, 2 voices, and was last updated 4 years, 9 months ago by .
Buttons in "Welcome" Open in new tab/window?
You must be logged in to reply to this topic.
Is there a way to get the button links in Welcome to open in a new tab/window?
Hello Pat,
Yes there is but you’ll need to edit a theme file.
In Appearance > Editor and find the hero.php file.
Add a target=”_blank” attribute to the links between line 29 and 42.
If you need help with that, let me know.
Hi Pat,
Hmm that sounds like a file permission issue with your host.
Can you provide me with admin access to your site so I can log in and have a look?
Select “Set as private reply” when responding.
Hi Pat,
I logged into your site and I see the issue you mentioned.
It seems to be part of a larger core WordPress issue.
Read here https://wordpress.org/support/topic/cant-edit-main-theme-php-files-after-upgrading-to-4-9/page/5/
A lot of other people are having the same issue.
I disabled the plugins which are not required by Integral and tried to edit the hero.php file but it just deletes all the content inside that file and I received the same error message you did.
The only solution I see for now is to edit the file on your computer and upload it via FTP, if you know how to do that. I imagine they will have a fix to this problem once a update to the WordPress core is released.
I think you will need to re-upload the hero.php file via FTP since the content of the file is probably gone.
You can add the target attribute to the links to that they open in a new tab/window.
Let me know if that doesn’t answer your question.
Hans – should have read this before responding to our other thread…will FTP the hero.php but I am still not sure at what point/spot on Lines 29 and 42 to enter target=”_blank”
That said, I will play with it and get back to you today.
Thanks again
Hans
With the one exception being that I haven’t figured out where to place target=”_blank” to get the buttons to open in a new tab, everything else looks to be working extremely well.
Thanks.
And if you can show me exactly where in the code to place target=”_blank”, I will take care of that.
Pat
Hi Pat,
Here is a copy of the hero.php file with the code you need.
https://www.dropbox.com/s/qudgdgod054lnq0/hero.php?dl=0
Download it and then upload via FTP. You should be good to go after that.
You must be logged in to reply to this topic.