I
I
IgorRastarov2017-02-21 16:06:40
HTML
IgorRastarov, 2017-02-21 16:06:40

How to make anchors in Bitrix slider?

Good afternoon!
I have a site with a slider.
The header and footer of the site are static.
The slider block is 4 buttons
Names: Lesson 1 Lesson 2 Lesson 3 Lesson 4
Each lesson has its own name and content
I need to put anchors on the titles.
That is, so that when I go to the link:
wwww.my-site.ru/education/#lesson1
, the necessary content opens in the slider block.
I implemented it like this:

<a name = "<?=$arElm['NAME']?>"><h2 class="clr1"><?=$arElm['NAME']?></h2></a>

But when you go to wwww.my-site.ru/education/#lesson1, for example
, I open an empty block in my slider
That is, a header, a footer - the norms are loaded
A block where the slider is empty.
Maybe someone knows how to organize such a thing on Bitrix?
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Burlaka, 2017-02-21
@IgorRastarov

Are these id's written in the slider?

lesson 1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question