Creating Dynamic Pages

  • ttdsinfo

    #3223

    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!

    Anonymous

    #23940

    Hmmm.. Do you want to show the slider on category archives?

    (Something like this – http://www.prasannasp.net/wordpress/ )

    ttdsinfo

    #23941

    yes that is exactly what I would like to do. I was going to just make page for the top level of my menu but if I could just add a slider to my categories that would save a lot of time. Is there a way to customize each categories’ slider? Thanks so much.

    Anonymous

    #23942

    To show the slider on Category Archives page, you need to add this to your child theme’s functions.php file.

    // 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..

    ttdsinfo

    #23943

    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!

    Anonymous

    #23944

    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? (<?php and ?>

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

Do NOT follow this link or you will be banned from the site!