Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1051400
    garlicfox
    Participant

    Hello,

    Thanks for creating such a wonderful theme. I’m now working with child themes… I’ve tried to look through the knowledge base as I’m pretty sure my mistake is simple.

    I downloaded and installed the x-child.zip and activated it. I went into the child theme directory and edited the functions.php where it gave me a spot to add additional functions.

    I went to add in a short code, and saved the file. I then edited a word press page to include that short cut and it just says [total] (the name of the short cut and not the result).

    I found this thread: https://community.theme.co/forums/topic/child-theme-not-working/ but think things have changed since then since i looked at the zip file and it seems are the stacks use the same child template now?

    Just wondering if you can un-confuse me 🙂

    Thanks!

    #1051740
    Friech
    Moderator

    Hi There,

    Thanks for writing in! Would you mind letting us know what shortcode you’re trying to add? And please provide us login credentials (wp-admin and FTP) in private reply, so we can take a closer look.

    Cheers!

    #1052309
    garlicfox
    Participant
    This reply has been marked as private.
    #1052421
    Paul R
    Moderator

    Hi,

    There are syntax error in your code, there is no function name and you missed a closing bracket in your if statement.

    Your code should look something like this

    
    function get_success_total() {
         -- ADD SQL QUERY HERE --
    }
    
    add_shortcode("success_total", "get_success_total")
    

    Hope that helps.

    #1052465
    garlicfox
    Participant

    Thanks for catching that oversight. Can confirm the child theme is working great.

    Thank you.

    #1052535
    Thai
    Moderator

    If you need anything else please let us know.

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