• Resolved racheljcox

    (@racheljcox)


    Hi! I’ve been developer a site with Customizr for a week or so and it’s been going well. I just hit a snag with a plugin that’s for a full background slider (called the Vegas Slider). I think I need to use a shortcode to make it work, but I can’t figure out where the shortcode goes. I have a Customizr child theme, and I’ve tried inserting the shortcode into the header.php file, the template files, nothing works. I get error messages eevry time.

    None of the tutorials online give specific instructions on WHERE in the page the shortcode should go. Obviously I’m still learning WP so that’s why I’m having this issue. And I think my difficulty is being compounded by using a slightly complicated template like Customizr.

    Thanks!

    Rachel

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter racheljcox

    (@racheljcox)

    Please disregard this question. I figured it out.

    Can you share a solution for others?

    Shortcodes normally go in a page’s html.

    Thread Starter racheljcox

    (@racheljcox)

    Basically the shortcode was not working when I tried putting it in the <head> because of the way Customizr is set up (I think). No matter where I tried putting it in the header.php file I would get an error message when I tried to view the page.

    The only way I could get the shortcode to work was to put it in the body of a page in the wp admin. My home page was a template where I had deleted all the article content. I had to put the minimum amount of that stuff back in so that the shortcode would be included, then go into the css and use “display:none” to get rid of all the other article stuff that I didn’t want displayed.

    So, I think the answer is, the shortcode works if you put it into the body of an article in the admin. Once you do that, you need to adjust everything else around it.

    Let me know if that doesn’t make sense!

    Thanks,
    Rachel

    Perfect, thanks Rachel and well done for resolving it.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Using Shortcodes’ is closed to new replies.