Link to record in (General Tabs) - by misha

This topic has 11 replies, 3 voices, and was last updated 2 years, 11 months ago ago by Olga Barlow

  • Avatar: misha
    misha
    Participant
    April 17, 2021 at 07:59

    Здраствуйте,

    Подскажите, возможно сделать ссылку на определенную запись в General Tabs?
    https://prnt.sc/11kb28k

    Спасибо!

    10 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 17, 2021 at 10:28

    Hello,

    Please provide URL and describe the desired result in more detail.

    Regards

    Avatar: misha
    misha
    Participant
    April 17, 2021 at 10:59

    1) Я бы хотел сделать ссылку на сайте на запись в General Tabs. Это возможно? Я не понимаю как это сделать так как адрес не меняется при раскрытии списка вопросов (спойлер).

    2) Также, я начал делать уже отдельными ссылками в Static Block (не разобравшись в первом вопросе). Но почему-то General Tabs меняет стили Static Block когда выставляешь его.
    General Tabs> Content >Content Type>Choose prebuilt static blocks.

    С 2) разобрался! 🙂

    Спасибо

    Please contact administrator
    for this information.
    Avatar: misha
    misha
    Participant
    April 18, 2021 at 19:07

    Здраствуйте,

    Подскажите, пожалуйста, у Вас есть какой-то ответ для меня?

    Спасибо!

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    April 19, 2021 at 14:36

    Hello,

    Do you want to create the anchor link that will open one of the tabs on the Help page once you click that link from the home page for example?
    We don’t have such options, unfortunately. It requires additional customization.

    Regards

    Avatar: misha
    misha
    Participant
    April 19, 2021 at 17:59

    Здраствуйте,

    Я не могу открыть Private content area.
    Жаль, что такой функции нет, она была бы полезна.

    Я нашел решение в интернет, для вкладок Elementor, но исправить под Ваш виджет не получилось.

    Источник: https://element.how/elementor-open-specific-tab-toggle-accordion/?heythere

    С уважением,

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    April 20, 2021 at 14:31

    Hello,

    Sorry, there is no content in the private area, just added space by mistake there.
    You can follow the instructions but change classes to classes of our element, for example

    <script>
    document.addEventListener('DOMContentLoaded', function() {
    jQuery(function($){
    let titles = $('.et-tab-nav');
    let strings = ['?hello',
    '?heythere',
    '?bonjour'
    ];
    strings.forEach( (string,i) => {
    if (window.location.href.indexOf(string) > -1) {
    titles.eq(i).click();
    $('html, body').animate({
    scrollTop: titles.eq(i).offset().top - 100
    },'slow');
    } } );
    }); });
    </script>

    Regards

    Avatar: misha
    misha
    Participant
    April 20, 2021 at 15:32

    Спасибо!

    Все отлично работает! Только не ищет почему-то если вкладка на кириллице (русском языке), на английском все хорошо

    С уважением,

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    April 21, 2021 at 13:52

    Hello,

    We added ID field for the tab title. So add the ID https://prnt.sc/11sy8kd
    And then use the below code on the page

    <script>
    document.addEventListener('DOMContentLoaded', function() {
    	jQuery(function($){
    
    	let strings = ['?chastye_voprosy',
    	'?oformleniye_zakaza',
    	'?vozvrat'];
    	strings.forEach( (string,i) => {
    	if (window.location.href.indexOf(string) > -1) {
    		string = string.replace('?', '');
    		if ( $('[id="'+string+'"]').length > 0 ) {
    			$('[id="'+string+'"]').click();
    			$('html, body').animate({
    				scrollTop: $('[id="'+string+'"]').offset().top - 100
    			},'slow');
    		};
    		}
    	}); 
    });
    });
    </script>

    If you have more questions about additional customization submit request here because additional customization is outside the scope of our support.

    Regards

    Avatar: misha
    misha
    Participant
    April 21, 2021 at 15:20

    Здраствуйте,

    Спасибо большое! Все отлично работает!

    С увадением,

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    April 21, 2021 at 15:37

    Hello,

    You are welcome.

    Regards

  • Viewing 11 results - 1 through 11 (of 11 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.