Question

I am using a WordPress theme called "business one page" and it has a slider with Learn-more button. Here is a demo of the theme Business-One-Page

I am using a child theme and I want to change the permalink of the button by inserting code into the functions.php file. First, I tried to locate the slider code inside the home-page-template then I have opened all files and search for the btn(class="btn-more") without any results. I have found the .php file for all sections and pages except the slider. Is it possible that some parts of the code are not included?

Is it possible to edit the permalink with coding? or do I have to create another button myself?

I just wanted to change the permalink so it would not link to another page, instead link to content on the same page using (#content).

Thanks

Était-ce utile?

La solution

I recommend creating a child theme first so you can update later. Further, you can edit /wp-content/themes/business-one-page/inc/extras.php at line # 149 and replace with below code.

<a class="btn-more" href="#content"><?php echo esc_html( $slider_readmore );?></a>
Licencié sous: CC-BY-SA avec attribution
Non affilié à wordpress.stackexchange
scroll top