
-
AuthorPosts
-
August 12, 2025 at 10:38 am #1487882
Hello,
We’re redesigning a website with Enfold, and our client asked us to do this (attached page).
The idea is that when you click on the basement or floors button, the image changes, as does the bottom content. How can we do this?Thanks in advance.
BR,
Antonio
August 13, 2025 at 11:39 am #1487957Hey Antonio,
Thank you for the inquiry.
Try to add a 1/3 column element alongside a 2/3 column element. In the 1/3 column, insert three Button elements. Set each Button Link manually, and enter #1, #2, and #3 in the link fields respectively. In the 2/3 column, add an Easy Slider with three images and make sure the dots navigation is enabled. After that, add the following script in the functions.php file to trigger the dots navigation when a Button element is clicked.
add_action( 'wp_footer', 'av_custom_script', 100 ); function av_custom_script() { ?> <script> // trigger slider dots jQuery(document).ready(function($) { $('.avia-button').on('click', function(e) { var targetHref = $(this).attr('href'); if (targetHref && targetHref.startsWith('#')) { var slideDot = $('.goto-slide[href="' + targetHref + '"]'); if (slideDot.length) { e.preventDefault(); slideDot.trigger('click'); } } }); }); </script> <?php }
Let us know the result.
Best regards,
IsmaelAugust 13, 2025 at 7:15 pm #1487986Hi Ismael,
I have had the test but no works ; (
Here I send you the web if like check it.
Many thanks,BR,
Antonio
August 13, 2025 at 11:22 pm #1488001Hi,
When I check the JavaScript doesn’t seem to be added to your page, when I inject it, it works like Ismael posted.
Perhaps you did not copy the JavaScript from the forum and the characters were converted? Copying code snippets from email will break it.
We can’t tell without and Admin login.Best regards,
MikeAugust 14, 2025 at 9:20 am #1488017Hi Mike,
Sorry, you right. I have added the code incomplete.
Works perfect.Many thanks!
BR,
Antonio.
August 14, 2025 at 1:24 pm #1488038 -
AuthorPosts
- The topic ‘Bottom change information in same page’ is closed to new replies.