Tagged: x
-
AuthorPosts
-
June 20, 2016 at 3:42 pm #1051400
garlicfoxParticipantHello,
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!
June 20, 2016 at 8:44 pm #1051740
FriechModeratorHi 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!
June 21, 2016 at 6:07 am #1052309
garlicfoxParticipantThis reply has been marked as private.June 21, 2016 at 7:44 am #1052421
Paul RModeratorHi,
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.
June 21, 2016 at 8:10 am #1052465
garlicfoxParticipantThanks for catching that oversight. Can confirm the child theme is working great.
Thank you.
June 21, 2016 at 8:50 am #1052535
ThaiModeratorIf you need anything else please let us know.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1051400 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
