Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #48417
    LAWRENCE J DAYHOFF
    Guest

    First of all I want to thank you for your fast response about me using my own templates. Now something weird is happening. I created a simple snippet

    add_shortcode( ‘testprint’, function () {

    print”<b>Why is this happing?</b>”;

    } );

    All that is on the test page is
    [testprint]
    the out put from the snippet is bboth on the page and above the banner.

    https://gotcooties.org/testprint/
    Can you tell me what this idiot is doing wrong? All my database pages are ready to go but because of this print problem I don’t want to publish to the public.

    #48453
    Brandon C
    Keymaster

    Hi Lawrence,

    You’re so welcome. We are always happy to answer your Crio Pro questions.

    You should probably review your code snippet in this case. There has to be something interrupting the functionality and it may just be a simple error in the code. The Code Snippets plugin has Template examples on how to set up snippets for different code types like “CSS” “JS” and “PHP”. You may be able to use one of those templates as a guide as to how to include your code.

    I hope this helps.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Code Snippet is Not functioning Properly in my WordPress Theme’ is closed to new replies.