-
-
Hello,
I wanted to ask if it’s possible set the button link in the codeless slider to an anchor (just #id) and scroll down on the same page to the sector with that id. That should be easy right? Isn’t this what most sites do? Or do I have to use another slider? Can you please tell me how I can get this going?
Thanks
br
-
Hello,
Yes, you can do this by setting the id as link in the Codeless Slide Options > Content > Button Link (screenshot). Just like you do with the one page configuration.
Make sure to set the same id as the link at the page’s row settings too (the section you want to link it to).To avoid the “open in new tab feature” of slider button, go to file \includes\codeless-slider\codeless_slider.php and find these lines:
if(!empty($cl_redata['slide_button1'])) $output .= '<a class="btn-bt '.esc_attr($cl_redata['overall_button_style'][0]).' '.esc_attr($cl_redata['slide_button1_style']).'" target="_blank" href="'.esc_url($cl_redata['slide_button1_link']).'"><span>'.$cl_redata['slide_button1'].'</span><i class="moon-arrow-right-5"></i></a>'; if(!empty($cl_redata['slide_button2'])) $output .= '<a class="btn-bt '.esc_attr($cl_redata['overall_button_style'][0]).' '.esc_attr($cl_redata['slide_button2_style']).'" target="_blank" href="'.esc_url($cl_redata['slide_button2_link']).'"><span>'.$cl_redata['slide_button2'].'</span><i class="moon-arrow-right-5"></i></a>';Remove
target="_blank"from it and save.Best regards!
-
Hello,
thanks for the quick response.
Actually I did it that way but when I click on the button – it stays the same (only the URL changes)
Also on other pages I need the open in new tab function.
br
-
Hello,
Did you set the id at the row settings? It will work only if set there, not in any other vc element.
Sorry but it’s not possible to have the button open in the same page in some pages and in new tab at others.
Let us know.Best regards!
-
Yes I set it under Row Settings – Row ID – integrations (id name)
and in the slider settings – Button Link – #integrations
But it does nothing.
br
-
Hello,
This is strange. We created the same situation on our side and it does work well. perhaps you forgot something. Please Please fill in the wp information on your extra information fields of your profile data. So we can give it a closer look.
Read this article for more information.
Best regards!
-
You must be logged in to reply to this topic.