Important notice: we will respond to all open ticket requests up until November the 1st. After this date, we will be unable to process the ticket requests here on Ticksy.

Okay
  Public Ticket #1463933
passing variables
Closed

Comments

  • Mediawebsocial started the conversation

    Hello

    On the eSmarts theme, at the course-page's sidebar I have a button that points to a register form (http://estamosenello.org.es/curso/fundamentos-de-robotica/).

    I need to rewrite the href attribute of that button to include a couple of variables in order to fullfill a couple of inputs on the destination form.

    Those variables should be the post ID and the post title.

    I can write PHP and javascript and I know how to write variables at the URL. Can you guide me on wich files shoud I work on?

    Any advice would be appreciated.

    Regards.

    PD: if you access to this site please be patient, there is an annoying before the first byte wait of maaaaany seconds.

  • Mediawebsocial replied

    Hi

    I've solved myself. 

    I've grabbed the info about the post on header.php, put it as some attributes of the body tag and then with a little bit of javascript I used them to rewrite the href and then to fill the inputs.

    Regards,

    (I'll be back with some more issues)

  •  1,845
    Elated replied

    Hello there,

    Glad to hear that!

    Let us know if there is anything else we can help you with.


    The Elated Support Center has been moved to our centralized support platform. 

    Please note that any existing tickets prior to this change will be answered right here on Ticksy, and in due time. 

    If you wish to submit a new support request, for all new inquiries please head on to our Help Center.

    Elated Themes is part of Qode Interactive – the home of 300+ premium WordPress themes.

    Don’t forget to sign up for our newsletter and be the first to find out all the latest news.