Integrate a link in a toggle element Part II

This topic has 14 replies, 3 voices, and was last updated 9 years ago ago by Robert Hall

  • Avatar: Royalty
    Royalty
    Participant
    May 8, 2015 at 20:59

    Hello,
    in this thread: https://www.8theme.com/topic/integrate-a-link-in-a-toggle-element/ you told me how to achieve that a link works also in toggle element. Thanks again! What I want now is that when I click the link, the toggle element stays open while the linked page is loaded. Is this possible?
    Many thanks in advance!

    13 Answers
    Avatar: Royalty
    Royalty
    Participant
    May 10, 2015 at 15:34

    And one additional question: I would like to include the following link to a toggle element:
    <a href="javascript:gaOptout()">...</a> but this doesnt work. When I save the site, the content of the link is deleted at it just stays <a>...</a>. It works with “normal” links but the toggle elements seem to have a problem with the javascript link. Any ideas how to fix this?
    Thanks in advance!

    Avatar: Eva
    Eva Kemp
    Support staff
    May 11, 2015 at 13:36

    Hello,

    Please provide us with exact code you want to add for a link and specify for want element you want to create a link.

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: Royalty
    Royalty
    Participant
    May 11, 2015 at 16:05

    I inserted the following code into a textfield of Visual Composer

    [toggle_block class="bordered Multiple"]
    [toggle title="Google Analytics"]
    1. <a href="http://www.google.com/analytics/terms/de.html" target="_blank">Allgemeine Nutzungsbedingungen von Google Analytics</a>
    2. <a href="javascript:gaOptout()">Google Analytics deaktivieren</a>
    [/toggle]
    [/toggle_block]

    When I then save and open the page, the first link works, the second link doesnt work. I open the editor again and see that my code was automatically modified to:

    [toggle_block class="bordered Multiple"]
    [toggle title="Google Analytics"]
    1. <a href="http://www.google.com/analytics/terms/de.html" target="_blank">Allgemeine Nutzungsbedingungen von Google Analytics</a>
    2. <a>Google Analytics deaktivieren</a>
    [/toggle]
    [/toggle_block]

    means that the part href="javascript:gaOptout()" was just deleted.
    Many thanks in advance!

    Avatar: Robert Hall
    Robert Hall
    Support staff
    May 11, 2015 at 16:22

    Hello,

    As I see the same problem is with default WordPress theme. Therefore, you need contact to author plugin (Visual Composer) with this issue.

    Regards,
    Robert Hall.

    Avatar: Royalty
    Royalty
    Participant
    May 11, 2015 at 16:29

    Do you think that they will help me? I’ve made the experience that some authors dont support users who dont have a licence key..

    Avatar: Royalty
    Royalty
    Participant
    May 11, 2015 at 16:32

    And do you think that my other question is possible? That when I click the link, the toggle element stays open while the linked page is loaded.

    Avatar: Robert Hall
    Robert Hall
    Support staff
    May 11, 2015 at 16:41

    Hello,

    Sorry for the misunderstanding, but question about toggle element is a bit unclear for us. Could you please clarify us with more details?
    Maybe provide screenshot for our better understanding and highlight what exactly you want.

    Regards,
    Robert Hall.

    Avatar: Royalty
    Royalty
    Participant
    May 11, 2015 at 16:51

    Hello,
    I have a toggle element which is closed by default. I open it and it shows a link. When I click on this link, the toggle element is closed again and the linked page gets open. I want that the toggle element stays open instead of closing. But I think that this is difficult because toggle elements always get closed when you click on the content…It would be better if they only close when you click on the title instead of when you click on the content..Do you know what I mean?

    Avatar: Robert Hall
    Robert Hall
    Support staff
    May 11, 2015 at 17:05

    Now I understand what you mean. Sorry but this is not possible.
    We’ve taken your request into our account.
    Maybe in the next update this will be changed.

    Regards,
    Robert Hall.

    Avatar: Royalty
    Royalty
    Participant
    May 11, 2015 at 17:07

    Ok thank you. Where can I see the changelog to get the information if you have changed it?

    Avatar: Robert Hall
    Robert Hall
    Support staff
    May 11, 2015 at 17:17

    You can see all new changes here:
    http://themeforest.net/item/royal-multipurpose-wordpress-theme/8611976
    Please scroll down and find this part as on screenshot: http://prntscr.com/741g4c

    Regards,
    Robert Hall.

    Avatar: Royalty
    Royalty
    Participant
    May 11, 2015 at 17:25

    ok thanks!

    Avatar: Robert Hall
    Robert Hall
    Support staff
    May 11, 2015 at 17:28

    You’re welcome!

    Regards,
    Robert Hall.

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

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

Helpful Topics

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