Phil Ewels
Forum Replies Created
-
Forum: Plugins
In reply to: [CPT Bootstrap Carousel] How to put slides in Home page only?Hey,
You have a few options – you can put the shortcode into the Page which is set as your home page (if you have a static home page).
Alternatively, you can put the carousel into your WordPress theme. The homepage is usually made with
front-page.phporhome.php. See the FAQ – “Can I insert the carousel into a WordPress template instead of a page?”Hope this helps.
Phil
Forum: Reviews
In reply to: [CPT Bootstrap Carousel] Carousel Post Type is RedundantHi Dylan,
I’m not quite sure what you mean by “having to create additional entries for each shortcode”? What are / were you trying to achieve?
I wrote the plugin to make it easy to generate markup for the bootstrap carousel. The separation from featured images in regular blog posts was intentional, I (and most other users of the plugin) use it simply for rotating images and banners within a page, rather than for presenting blog post content of the website. As far as I’m aware, WordPress doesn’t do this by default.
Anyway, if you could elaborate on what you were trying to do with the plugin I’d be happy to try and help out.
Phil
Yeah, absolutely – this is a really good idea. I’ve marked it as an issue to do on the github project: https://github.com/ewels/cpt-bootstrap-carousel/issues/33
There’s already code doing something pretty similar for the featured image, so it shouldn’t be much work to add the taxonomy: https://github.com/ewels/cpt-bootstrap-carousel/blob/master/trunk/cpt-bootstrap-carousel.php#L79
I’ll try to get around to doing this for you soon, though no promises. If you fancy forking the github repo and submitting a pull request you’re very welcome 😉
Phil
Forum: Plugins
In reply to: [CPT Bootstrap Carousel] Is this straight out of the box?Hi Emwat,
This plugin is only designed to create the markup for the Bootstrap carousel, and not create a fully functional carousel on it’s own – it was designed for sites already running a theme based on Bootstrap. As such, you’ll need the bootstrap CSS and javascript loaded for it to work. As you say, this may conflict with other themes not based on Bootstrap.
Other than including the javascript and styling it yourself with some custom CSS (see the docs for reference), I’m afraid that there’s not much else you can do. There are other plugins which run different image carousels which should work independently though.
If there are any specific problems, drop a link and I can have a look.
Phil
Forum: Plugins
In reply to: [CPT Bootstrap Carousel] Theme Conflict… How do I add JS files?Great! Glad I could help..
Given the lack of response and the fact that I’m unable to replicate this problem I’m going to mark this topic as resolved. Happy to reopen it again if needed.
Phil
Forum: Plugins
In reply to: [CPT Bootstrap Carousel] Set image as backgroundI’ve had a similar issue raised on github, where the poster pointed out that my solution above will then cause problems on wide screens. The background-image solution fixes it for both.
I’ll add it as a feature request for a future release and mark this pos as resolved for now.
See https://github.com/ewels/cpt-bootstrap-carousel/issues/31 for further discussion.
Phil
Forum: Plugins
In reply to: [CPT Bootstrap Carousel] Theme Conflict… How do I add JS files?I’d start by removing the include in your theme (if editing it is possible) and loading in the full bootstrap JS file, rather than trying to add two together.. That way lies pain.
Beyond that it’s difficult to say really – do any javascript errors pop up when you look in the chrome inspector? Can you supply a link where the error is happening?
Phil
Forum: Plugins
In reply to: [CPT Bootstrap Carousel] Set image as backgroundHi there,
This is a tricky one – I thought about getting WordPress to use its thumbnail resizing to sort this out, but I wanted to keep the plugin agnostic to image sizes so in the end I decided to keep it simple and leave it up to people to resize the images themselves.
Depending on how you want portrait photos to display, I guess you could do this with CSS by fixing the height of
.carousel-inner? I just had a go and it looks like it already has its overflow set to hidden, so changing this height should essentially crop the photos within. I haven’t tried this with portrait photos though. I’d probably try this with CSS first, and then we can talk about writing in server side support for such a feature if that doesn’t work.Thanks for your comments anyway, I’m glad you find the plugin useful 🙂 A cheeky review would be much appreciated. Let me know how you get on with your problem..
Phil
Ah it’s a pain when you can’t get to the PHP errors. Maybe try getting the debug log to work? See https://codex.wordpress.org/Debugging_in_WordPress
Anyway, it seems pretty likely that it’s a compatibility issue as I can’t get the same bug on my testing site. I’ll mark this as resolved for now but if you pull out any error messages to find the offending lines of code, that would be interesting 🙂
Phil
Ah ok – it looks like a PHP fatal error. If you turn on
WP_DEBUGin yourwp_config.phpfile it might provide some pointers..Hi Christine,
When you say that the website content goes blank – do you mean that the no html is produced at all? Or the slider is blank? Or the normal page content is blank?
If you want to include the carousel on the front page only, I’d recommend creating a template called
front-page.php(see the codex) instead of putting it into the header.Also, the
<?php else : ?>is not doing anything. So you can simplify the code to:<!-- /.slider --> <?php include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); if (is_plugin_active('cpt-bootstrap-carousel/cpt-bootstrap-carousel.php')) { echo do_shortcode('[image-carousel]'); } ?> <div class="clear"></div>Does that make sense? Try that, and if you’re still having trouble then let me know about what exactly it is that you see. If your site is publicly visible a link would help too..
Cheers,
Phil
Forum: Plugins
In reply to: [CPT Bootstrap Carousel] Carousel "Add New" option missing from menuAha – role scoper – that’d do it! I’m pretty sure I’ve run role scoper with the plugin before successfully, so it’s probably a case of ticking an extra box somewhere.. Good luck!
Forum: Plugins
In reply to: [CPT Bootstrap Carousel] Carousel "Add New" option missing from menuOk, as you say – this error usually comes up because a user doesn’t have permission to access the page.
Do you have any other plugins installed? Especially any that modify which pages are shown in the administrator interface or modify user permissions in any way? It’s often worth disabling all plugins and switching to a default wordpress theme to see if it’s a clash between different plugins / themes.
Can you try creating another administrator user, and logging in as them?
Phil
Forum: Plugins
In reply to: [CPT Bootstrap Carousel] Carousel "Add New" option missing from menuHi kmd1970,
That’s odd – I’m pretty sure it’s not anything to do with the new WP v3.9 (I’m running it with that version and it’s fine). Do you get any error messages? What happens when you go to the following URL? wp-admin/post-new.php?post_type=cptbc
Phil