Feature Pages (not posts) in the Slider?
-
Hi,
first of all: great theme, but I guess you’ve heard that before.
Secondly: my feature request: As far as I see, I can only feature posts (either by category or by date) in the slider. However I’d like to feture pages instead. Is there any chance to:
a) Add Categories to pages
b) Use “custom field” (hope it’s translated correctly, I’m using the German version) property to select content for the slider.
c) Some magic you do.
Best,
Erik
AdminHi Erik,
There’s a plugin that allows you to assign categories to pages, such as this Map Categories to Pages plugin.
As for the custom field, what are the options of the content to be selected for the slider?
AdminTry adding this code in your child theme’s
functions.php
file:function graphene_custom_slider_post_type(){
$post_type = array('post', 'page');
return $post_type;
}
add_filter('graphene_slider_post_type', 'graphene_custom_slider_post_type');AdminIf you’re using a child theme, just put that anywhere in the child theme’s functions.php file. If you’re not using child theme, put it anywhere in the theme’s functions.php file. The positioning doesn’t matter.
I got it to work also, thank you!
However, for some reason, the image won’t display floating left to the text like it would before. See here (http://www.cleansingfyi.com/uhtsite).
Any ideas for this? I appreciate your help!
Regards,
~RCW
AdminYour CSS is missing this rule declaration:
.sliderpost_featured_image {
float: left;
margin: 4px 1em 12px 0;
}Just add it back to either your child theme or the theme’s style.css file.
Viewing 10 posts - 1 through 10 (of 16 total)
- 1
- 2
- You must be logged in to reply to this topic.