How to add a link to a slider

Ask Theme Settings & Configuration Related Issues Here

Moderator: forum_m

Post Reply
hannahnix
Posts: 2
Joined: July 12th, 2018, 3:50 pm

How to add a link to a slider

Post by hannahnix » July 17th, 2018, 3:37 pm

I have hidden the dark box that comes up on the slider using the code .ei-title {
display: none !important;
}.

I would now like to know how I can make my sliders link to other pages when people click on them.

The website is - https://brisbanebooty.com.au/

Thanks.

support_staff
Posts: 7205
Joined: February 26th, 2015, 1:40 pm

Re: How to add a link to a slider

Post by support_staff » July 17th, 2018, 5:11 pm

Hii,

Firstly create a child theme using a plugin - https://wordpress.org/plugins/orbisius- ... e-creator/

Copy and paste an index-slider.php file from parent theme to the child theme and replace it with the code given in the below link and save -

https://pastebin.com/60mCEirc

Thanks.

hannahnix
Posts: 2
Joined: July 12th, 2018, 3:50 pm

Re: How to add a link to a slider

Post by hannahnix » July 19th, 2018, 9:14 am

Hi,

I do not know anything about coding. Where would I find a an index-slider.php in the parent file and which section would I past it into the child theme?

Also do I have to activate the child theme or just live preview? I don't want to lose all the work I have done on the site by activating a child theme?

Finally, are you saying I just page this code - https://pastebin.com/60mCEirc into where I get the index-slider.php on the parent theme? Then my sliders will be able to be linked and do I put the url I want the sliders to link to in the button section?

Sorry for my many questions but I do not know any coding.

Thanks,
Hannah

support_staff
Posts: 7205
Joined: February 26th, 2015, 1:40 pm

Re: How to add a link to a slider

Post by support_staff » July 19th, 2018, 11:20 am

Hello,

Step 1) Please open your main theme directory (weblizar premium theme), here you can see the index=slider.php file Copy this file, here is the snapshot -

https://postimg.cc/image/rvcz4qk8d/

Step 2) After coping index-slider.php file, Open you weblizar-child theme directory and paste the copied file(index-slider.php) in your child theme directory.

Step 3) After Paste the index-slider.php file, in your child theme directory Open this file.
Replace all of the code given in this link https://pastebin.com/60mCEirc and save the file after that.

Hope you will understand now.

"Also do I have to activate the child theme or just live preview? I don't want to lose all the work I have done on the site by activating a child theme? "

For this question - Yes you need to activate your child theme. You don't need to worry about your changes. The changes will not be changing after activating the child theme.

Thanks.

Post Reply

Return to “Theme Settings & Configuration”