ewels / CPT-Bootstrap-Carousel

WordPress plugin which generates a custom post type for choosing images and content. Outputs Bootstrap Image Carousel (slider) HTML from a shortcode.
http://wordpress.org/plugins/cpt-bootstrap-carousel/
GNU General Public License v2.0
51 stars 36 forks source link

Override template in my theme #74

Closed kpaulsson closed 8 years ago

kpaulsson commented 8 years ago

Hi I tried to override the plugin template in the theme that I am doing for my employers homepage. I need to add some classes and som markup in the carousel. Is there a feature so that I can just copy a template to my theme and edit in there?

Like company-theme/plugins/cpt-bootstrap-carousel/cptbc-frontend.php

ewels commented 8 years ago

Hi @kpaulsson,

I'm afraid not - your best bet is probably to fork this repository and edit the files, making your own version of the plugin.

Obviously it depends what you're trying to achieve, but most people's support requests are usually achievable by using the CSS classes that are already there. So that's another option.

Phil

kpaulsson commented 8 years ago

I copied cptbc-frontend.php to themes/mytheme/inc/, changed the name of the functions a little bit. Changed the name of the shortcode, included the file in my functions.php and adapted the code I needed it. Works great.

ewels commented 8 years ago

Great! Glad you sorted it.