Jump to content
kristjan72

Bootstrap carousel shortcodes

Recommended Posts

kristjan72

Is it possible to customise the behaviour of the bootstrap carousel using the shortcodes? Sepecifically I want to have carousel set to pause unless the user clicks, so no auto sliding at all. I've tried this:

[pl_carousel name="cameraslider" data-pause="true"]
also, for a different slider I would like to change the speed of the sliding:
[pl_carousel name="trailerslider" data-interval=1000 data-pause="hover"]

but the speed seems to remain constant whatever value I put after the data-interval attrinbute (the pause on hover does work!)

thanks

Share this post


Link to post
Share on other sites
James B

Hi there,

The only thing i can see from your code is that the interval isn't enclosed in "". According to the bootstrap page you can pass intervals in the shortcodes.


[pl_carousel name="trailerslider" data-interval="1000"data-pause="hover"]


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
kristjan72

Oops. The no-closed quote marks were ok on my site, just messed up typing the code here on the forum post.

I made two carousel sliders, on the same page, one with the data-interval set to 1000, and the other set to 6000, but they both auto-scroll at exactly the same speed, looks like the default. Maybe the 'data-interval' is the wrong shortcode for that? I looked in class.shortcodes.php but couldn't find any shortcode that looked like it affected the speed

Share this post


Link to post
Share on other sites
Danny

I have just tried this and you're correct, but there is no mention of this type of functionality in our demo shortcode page. I will speak to one of our developers and reply here when I have more information.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
kristjan72

thanks. I'll use the Quickslider in the meantime, although I prefer the bootstrap sliders look

Share this post


Link to post
Share on other sites
kristjan72

I do have this question:

I'm using this code (thanks to Danny) to for the blog page:

.blog #site #pagelines_content, {

background: transparent;

border-color: transparent;

}
and I want to do the same for other pages. I'd like to apply this same to different Page Templates (in this case Template 4). Searched class.template.php and it looks like the templates are simply labelled 1, 2, 3, 4, 5. I tried:
.4 #site #pagelines_content, {

background: transparent;

border-color: transparent;

}

but that didn't work. Any idea?

Share this post


Link to post
Share on other sites
Danny

Hi

You can use the following classes for the templates.

  • Template | Default = .default .page-template-default
  • Template | 1 = .alpha .page-template-page-alpha-php
  • Template | 2 = .beta .page-template-page-beta-php
  • Template | 3 = .gamma .page-template-page-gamma-php
  • Template | 4 = .delta .page-template-page-delta-php
  • Template | 5 = .epsilon .page-template-page-epsilon-php
  • Template | Example = .example .page-template-page-example-php

So with that, you can do the following for template 4.


.delta #site #content .content, {
background: pink;
border: 1px solid green;
}[/CODE]


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
kristjan72

thank you, works!

Share this post


Link to post
Share on other sites
Danny

Also, I have spoken to one of our developers regarding the data interval and data pause and he informed me that these settings have not been implemented. However it should be fairy simple and will be added in the future.

I have resolved this topic.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
Danny

The topic was marked as resolved.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Similar Content

    • jeomiland
      By jeomiland+
      Howdi
      Am following a couple of tutorials about making custom shortcodes and making them available in your site. They recommend to make a "my_custom_shortcode.php" file in wp-content folder so it survives Core wordpress and Theme updates. However, they then say to place a couple lines of code in the theme functions.php file. The one in pl-framework theme folder does not look like the best place to put that code and I can't see a shortcodes.php file in the theme.
      So where is the best place and way to add custom shortcodes to a Pl5 project?
      Thanks
      john erik
    • marshallsolutions
      By marshallsolutions
      For the site https://marshallsirishpub.com I am running
      Wordpress 4.9.4
      Pagelines base theme 1.0.2
      Pagelines Framework 2.5.0
      Specific page not working properly is https://marshallsirishpub.com/photo-gallery/
      I am using NextGen gallery which is activated and showing the pictures in the gallery.  Page was edited to add the carousel and points to the NextGen gallery.  Meta settings and page were both saved.
      When I'm logged into Wordpress I see the following error at the top of the page:
       Carousel 
      THE PLUGIN FOR THE SELECTED CAROUSEL MODE NEEDS TO BE ACTIVATED (FLICKRRSS OR NEXTGEN GALLERY). SETUP PLUGIN →
      The site was hacked last month and it seems the hacker changed some things on the site, but I can't figure out what was changed to make the Carousel not show on the page.
      Thanks.
    • Jason
      By Jason+
      Any chance you can add anchors to the tabs shortcode (similar to ultimate shortcode plugin)?
      Just annoying having to use that plugin rather than pagelines one
       
      <h2>Tabs anchors</h2> [su_tabs] [su_tab title="Tab 1" anchor="First"] Tab 1 content [/su_tab] [su_tab title="Tab 2" anchor="Second"] Tab 2 content [/su_tab] [su_tab title="Tab 3" anchor="Third"] Tab 3 content [/su_tab] [/su_tabs] Use next links to switch this tabs <a href="#First">Open tab 1</a> | <a href="#Second">Open tab 2</a> | <a href="#Third">Open tab 3</a>  
    • Jason
      By Jason+
      Any solution to map section not rendering inside tab shortcode.
      (Map sits inside 3rd tab so map not visible on page load)
      Also this just seems to effect the map section. Map shortcode renders fine.
      I want to use the map section for finer control over markers and locations
      Renders fine if in first page.
       
      Thanks
    • oseehys
      By oseehys+
      The Grams section of Platform 5, is lacking lots of important features, that DMS multigram was having, there is no space for another user ID asie the default user, that was one of the strongest point of multigrams, because the Hashtag option cannot capture everyone, multiple User ID is the default standard for Instagram,  Also there is no carousel or slide on this one, it means now that if you want to display 18 pictures in one page all will be visible at once thats not good engineering.
      My appeal to the Pagelines Team, guys please let the next update have all the DMS Multigrams features that is missing on Platform 5 Grams, that will bring it to its glory...
       
       
×