June 15, 2018 at 11:08 pm #220882
Hello, and thank you all for letting me be part of this community.
I have a customization task I need help with.
Are there any methods to make the hero logo section images on the Authority Pro Theme, clickable?
I´d like to add hyperlinks to them and make those links open on a new tab.
I received some guidance from StudioPress help center. This is what they provided.
Although we aren't able to provide a copy/paste solution or step-by-step instructions for this since it would require custom code written specifically for your site, we can help point you in the right direction to make the changes you would like.
You'll find the code that shows the hero logo section images in theme's "hero-section.php" file, starting from the line# 98.
( authority-pro/lib/templates/hero-section.php )
Using the anchor or link tag ( https://www.w3schools.com/tags/tag_a.asp ) those images can be turned into clickable links.
For assistance with this and similar customization, you may want to post a thread in our Community Forums. It's possible that another user has done something similar and would be willing to share their code with you: http://studiopress.community
You could also check out the other community resources such as the Slack channel and Facebook group: https://my.studiopress.com/community/
And for more comprehensive theme customization solutions, we have compiled a list of Genesis developers who may be able to assist for a fee: http://www.studiopress.com/genesis-developers
I'm wondering if anyone on the forum has an idea on how to achieve this, or even better, has already gone through a process I can follow.
Thank you so much in advance.
Luis.https://luislorenzoriverasevilla.com/June 16, 2018 at 5:22 am #220884Brad DaltonParticipant
You can modify the PHP code in the lib > templates > hero-section.php file and the lib > customizer > customize.php starting line 265. This will enable you to add a link for each logo in the customizer.
June 16, 2018 at 8:03 am #220886
Thank you so much for all your help.
I know how to access the files through the editor, however, I don't know how to code.
Any tips on how to get the proper code to edit the files you mention and get the job done?
Luis.June 16, 2018 at 9:20 pm #220894Brad DaltonParticipant
This is not a simple edit of PHP and would require a advanced level of PHP to add the code for the input and modify the code in the hero-section.php to add the link.
A shortcut would be to skip the addition of input fields in the customize.php file and hard code the links in the hero-section.php but this still requires understanding of PHP.
June 17, 2018 at 12:23 pm #220912
Thank you so much for all your help, time and guidance.
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.