Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #999522
    joshipucher
    Participant

    Hello, I’m using a the X child theme.

    In other themes I was able to define a global variable in the functions.php like this:

    global $hello;
    $hello = "aaa";

    But with the X theme, I can’t call the function in any file framework file, that is also in the child theme, like /framework/views/renew/content-page.php. So this doesn’t echo anything:

    global $hello;
    echo $hello;

    Can you help me how to add global variables for using in the whole theme?

    Thank you

    #999845
    Rupok
    Member

    Hey there,

    Thanks for writing in! Regretfully, this particular customization request is outside the scope of our support as this is not related to an issue with the theme and instead has to do with your customization of it. As such, you will need to investigate this particular issue on your own or seek help from a developer should you not feel comfortable making these changes yourself. If you have any further questions about the theme, we are more than happy to provide you with assistance on these inquiries.

    Thank you for your understanding.

  • <script> jQuery(function($){ $("#no-reply-999522 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>