Shortcode

Featured Theme Forums Bootville Shortcode

This topic contains 10 replies, has 2 voices, and was last updated by  zeaks 2 months, 3 weeks ago.

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #17945

    craig
    Participant

    When I use shortcode for video or auto responders within posts or pages it works.

    When I use shortcorde in hero content or home content within the homepage settings, it doesn’t work.

    Do you have a list of shortcodes that work with this theme?

    #17946

    craig
    Participant

    I’d love to add short code to “Right Featured Content” and “Featured Content” just like I can in normal posts/pages.

    #17948

    zeaks
    Keymaster

    Bootville doesn’t have any built in shortcodes it’s not a good idea to add them to a theme they should be added through a plugin instead.

    Bootstrap classes do work with this theme in posts, pages and widgets, This plugin https://wordpress.org/plugins/bootstrap-3-shortcodes/ makes it easy to add bootstrap elements (buttons, forms etc ) to posts.
    Bootville Options > Support in your admin section has a bit of information listed on recommended plugins.

    I would need to know what shortcode your trying to use and what plugin the shortcode is for so I can test it with the home template.

    #17950

    craig
    Participant

    Thanks for your support.

    Within posts and pages the following code will show my video steaming from S3. No need for bootstrap plugin.

    [video= src="http://xxxxxxxx.cloudfront.net/videos/test.mp4" width="600" height="338" expires= "+20 minutes" poster="http://xxxxxxxx.cloudfront.net/images/videotrainingsplash2.jpg"]

    When I insert this code in the “Right Featured Content” within the home page settings it does not work. (visual tab or text tab)

    How can I get this to work?

    Thanks in advance.

    #17951

    zeaks
    Keymaster

    Youtube videos work but that’s using an iframe. I’m guessing since the template doesn’t have the_content in it the built in WordPress shortcodees are not executing in that template.

    try using this and let me know if it works for you

    <iframe src="http://xxxxxxxx.cloudfront.net/videos/test.mp4" width="600" height="338" expires= "+20 minutes" poster="http://xxxxxxxx.cloudfront.net/images/videotrainingsplash2.jpg"></iframe>
    
    #17952

    craig
    Participant

    Thanks!

    This worked then I adjusted it to

    <div class="embed-responsive embed-responsive-16by9"><iframe src="http://xxxxx.cloudfront.net/videos/test.mp4"poster="http://xxxxx.cloudfront.net/images/videotrainingsplash2.jpg"></iframe></div>
    #17953

    zeaks
    Keymaster

    Great I’m glad it worked. I will still fix this issue I’m sure it’s because of the missing the_content in that template which is what the built in shortcodes look for. Thanks for letting me know about the problem

    #17954

    craig
    Participant

    Thanks!

    Will the theme have a notice in my admin panel that “An Update Is Available”? Or will I have to check the download page on this site?

    #17955

    zeaks
    Keymaster

    You should receive an email when there is an update. The update notifications only work for themes that are downloaded from WordPress.org. I also make a new post on the blog when I release an update for any theme.

    #17969

    craig
    Participant

    Hi Zeaks,

    Where would I add “the_content” so the front page can execute short codes like pages and posts can?

    #17972

    zeaks
    Keymaster

    Technically the_content is already used in the front page template but the way it works is the template pulls in information from other templates that use the_content and displays it. Without recoding the template I don’t think it’s possible.
    Shortcodes are just a simple way to add something (such as a video or button) there is always a manual way such as using the embed code or iframe which should always work.

Viewing 11 posts - 1 through 11 (of 11 total)

You must be logged in to reply to this topic.