Random Slider? One color theme for one page?

resolved (8 posts) (3 voices)

  1. naujl16
    Member

    I am wondering if I can have random sliding show ups? For example, I can 6 slides but I would like #1 to be random from the 6.

    Last, can I choose a color them for just one page of the site? I am doing a "go green" page and it would be killer if I could make that one page green. Possible?

    Posted 1 year ago #
  2. Elliott
    Support

    Hello naujl16,

    This is kind of bordering on custom work. Here is a similar thread which you can try though, http://mysitemyway.com/support/topic/randomizing-slider-images

    As for the green page, are you just wanting to change the slides green? Go ahead and take a screenshot and highlight the area which you would like to change so we can get a better idea.

    Posted 1 year ago #
  3. naujl16
    Member

    http://home.youravsolutions.com/services/home-automation/

    I want that page to have the lime css on that page only. Is that a possibility?

    Posted 1 year ago #
  4. Elliott
    Support

    I see now. Open up /wp-content/themes/infocus/header.php and on line 13 you should see this,

    <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('template_directory'); ?>/styles/<?php echo $color_scheme; ?>" />

    You'll want to place a check for your page ID and output the lime CSS like so,

    <?php
    if (is_page("25")) { ?> <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('template_directory'); ?>/styles/lime.css" /> <?php  }
    else { ?> <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('template_directory'); ?>/styles/<?php echo $color_scheme; ?>" /> <?php }
    ?>

    In the above example it checks if the page is ID 25 and if it is then it loads the lime.css instead.

    Let us know if that works for you naujl16.

    Posted 1 year ago #
  5. naujl16
    Member

    omg, genius. Thank you very much. Great theme and support. Can't wait for more from you guys.

    Posted 1 year ago #
  6. Elliott
    Support

    Your welcome naujl16, let us know if you have any other questions.

    Posted 1 year ago #
  7. scoc
    Member

    It would appear that only one other color change can be used for a single other page with the code above. e.g. you have a green site template, you put the code in and can change only one other page a different color. Is there a way to change multiple pages to different colors? You may want to build a site that has "shoes" "coats" "hats" and might want different parts of the site in specific colors to show a theme or style in that area of the site. Is this possible?

    Posted 1 year ago #
  8. Elliott
    Support

    Hello scoc, thanks for the suggestions.

    If you place another stylesheet declaration beneath the previous one then it should overwrite all of the changes. So if you wanted to change another page to a different color then you would just need to copy that code again and place it a bit lower on the page.

    Posted 1 year ago #

Reply

You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme