Creating Dynamic Pages
-
hey guys, some of you may have seen my site @ http://www.ThingsThatDontSuck.info but basically right now I have categories and not pages in navigation menu, so while it functions how I would like, I would now like to create dynamic pages for each category fairly similar to my homepage; with the sliding banner and all. Does anyone have any advice on how to go about doing this or point me in the right direction to where I may look for tutorials? Thanks!
Hmmm.. Do you want to show the slider on category archives?
(Something like this – http://www.prasannasp.net/wordpress/ )
To show the slider on Category Archives page, you need to add this to your child theme’s
functions.phpfile.// slider on category archives
function graphene_display_slider(){
if (is_front_page() || is_home() || is_archive()){
graphene_slider();
add_action('wp_footer', 'graphene_scrollable');}
}
function custom_enqueue_scripts(){
if ( ! is_admin() ) { // Front-end only
wp_enqueue_script( 'graphene-jquery-tools' ); // jQuery Tools, required for slider
}
}
add_action( 'wp_enqueue_scripts', 'custom_enqueue_scripts' );Is there a way to customize each categories’ slider?
Yes, but it needs hard coding..
sorry for my inexperience with coding but I copied and pasted your code and placed it within my functions.php but the only thing that happened was the removal of my admin bar and the visibility of the code above my banner. Again I’m sorry for my lack of knowledge but could you explain what I could have possibly done wrong? Thanks again!
Where did you put this code. In the parent theme’s functions.php or child theme’s functions.php? And, did you add opening and closing PHP tags? (
<?phpand?>
Viewing 6 posts - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.
