• Is it possible to change/edith the id of the code from an URL parameter??

    This way you could be very handy to create website variants with the templates.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Hemant Tejwani

    (@tejwanihemant)

    Hi @sacubaba

    As I can understand you want to change the template id present in the shortcode provided by Anywhere Elementor.
    No, it’s not possible.

    Thread Starter sacubaba

    (@sacubaba)

    Thanks Hemant for the clarification. I am trying to display it with a code like this inside the HTML. But the twist here would be to turn a url parameter into the code to pick which section I want to display.

    But I am not very good with javascript.

    <h1>Text to display</h1>

    <script>
    var h1 = document.querySelector(‘h1’);
    var urlParams = new URLSearchParams(window.location.search);
    if(urlParams.has(‘fillname’)) {
    h1.innerText = urlParams.get(“fillname”);
    }
    </script>

    Plugin Contributor Hemant Tejwani

    (@tejwanihemant)

    Hi @sacubaba

    I am not sure, what do you want to achieve.
    And I think this code will work and change the content of the h1 tag.

    But it’s not feasible with our plugin’s shortcode.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘URL Parameters’ is closed to new replies.