Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #142754

    wallricha
    Participant

    I wish to pass messages from my webapp to my homepage which uses the X theme. How can I display a message in a header, pass the parameter to a shortcode or something similar?

    site.com/?message=hello%20there%20page

    #142794

    Alexander
    Keymaster

    Hey there,

    Thanks for writing in! Regretfully this isn’t a feature offered by X. It could be possible with custom development, but this would be outside the scope of support we can offer.

    It’s definitely possible with a shortcode though. You can learn about adding shortcodes in WordPress here: (http://codex.wordpress.org/Function_Reference/add_shortcode)

    Also, in PHP you can access URL parameters with the GET super global. (http://php.net/manual/en/reserved.variables.get.php)

    Be sure to sanitize the incoming data, or you’ll open yourself up to XSS attacks. (http://codex.wordpress.org/Validating_Sanitizing_and_Escaping_User_Data)

    You should be able to add all the custom code you need within functions.php of a child theme. (https://theme.co/x/member/kb/customization-best-practices/)

    For a full solution, you may wish to consult a developer, or a service like WerkPress or Elto to assist you with this. X is quite extensible with child themes, so there are plenty of possibilities. Thanks for understanding. Take care!