Title: JohnWinch's Replies | WordPress.org

---

# JohnWinch

  [  ](https://wordpress.org/support/users/johnwinch/)

 *   [Profile](https://wordpress.org/support/users/johnwinch/)
 *   [Topics Started](https://wordpress.org/support/users/johnwinch/topics/)
 *   [Replies Created](https://wordpress.org/support/users/johnwinch/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/johnwinch/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/johnwinch/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/johnwinch/engagements/)
 *   [Favorites](https://wordpress.org/support/users/johnwinch/favorites/)

 Search replies:

## Forum Replies Created

Viewing 14 replies - 1 through 14 (of 14 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Ramdom background images](https://wordpress.org/support/topic/ramdom-background-images/)
 *  Thread Starter [JohnWinch](https://wordpress.org/support/users/johnwinch/)
 * (@johnwinch)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/ramdom-background-images/#post-1682745)
 * Thanks !
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Random logo script not working ?](https://wordpress.org/support/topic/random-logo-script-not-working/)
 *  Thread Starter [JohnWinch](https://wordpress.org/support/users/johnwinch/)
 * (@johnwinch)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/random-logo-script-not-working/#post-1658115)
 * Thanks you ! It’s working !
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Random logo script not working ?](https://wordpress.org/support/topic/random-logo-script-not-working/)
 *  Thread Starter [JohnWinch](https://wordpress.org/support/users/johnwinch/)
 * (@johnwinch)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/random-logo-script-not-working/#post-1658105)
 * It’s not working but when I put my mouse over the place where the logo should
   be displayed I’ve got the following :
 * Array
    ( [0] => l.jpg [1] => logo1.jpg [2] => logo2.jpg [3] => logo3.jpg [4] 
   => zeatrt.jpg [5] => zergter.jpg [6] => zerzt.jpg )
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Random logo script not working ?](https://wordpress.org/support/topic/random-logo-script-not-working/)
 *  Thread Starter [JohnWinch](https://wordpress.org/support/users/johnwinch/)
 * (@johnwinch)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/random-logo-script-not-working/#post-1658095)
 * What should I be looking for ? I’m new to this but if you explain to me it might
   help me understand.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Random logo script not working ?](https://wordpress.org/support/topic/random-logo-script-not-working/)
 *  Thread Starter [JohnWinch](https://wordpress.org/support/users/johnwinch/)
 * (@johnwinch)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/random-logo-script-not-working/#post-1658082)
 * It didn’t work, but when I look at the source code from Firefox, here’s how the
   code is displayed :
 * <img src=”[http://127.0.0.1/blog/wp-content/themes/fashionpro/images/logo/l.jpg%20border=&#8221](http://127.0.0.1/blog/wp-content/themes/fashionpro/images/logo/l.jpg%20border=&#8221);
   0=””>
 * This must have something to do with the %20 after the .jpg
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Random logo script not working ?](https://wordpress.org/support/topic/random-logo-script-not-working/)
 *  Thread Starter [JohnWinch](https://wordpress.org/support/users/johnwinch/)
 * (@johnwinch)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/random-logo-script-not-working/#post-1658074)
 * Thanks, I’ve tried it but it didn’t work either.
    Here’s my code, i don’t think
   I’ve made any mistakes.
 *     ```
       <?php
       // Ouvre un dossier bien connu, et liste tous les fichiers
       $directory = TEMPLATEPATH . '/images/logo';
       $directory_uri = get_stylesheet_directory_uri() . '/images/logo/';
       // Définition d'$image comme tableau
       $image = array();
        //on vérifie s’il s’agit bien d’un répertoire
        if (is_dir($directory))
        {
        //on ouvre le repertoire
        if ($dh = opendir($directory))
        {
        //Lit une entrée du dossier et readdir retourne le nom du fichier
        while (($file = readdir($dh)) !== false)
        {
        // Vérifie de ne pas prendre en compte les dossier ...
        if ($file != '...' && $file != '..' && $file != '.')
        {
        // On ajoute le nom du fichier dans le tableau
        $image[] = $file;
        }
        }
        //On ferme le repertoire
        closedir($dh);
        // On récupère le nombre d'image total
        $total = count($image)-1;
        // On prend une valeur au hasard entre 1 et le nombre total d'images
        $aleatoire = rand(0, $total);
        // On récupère le nom de l'image avec le chiffre hasard
        $image_afficher = "$image[$aleatoire]";
        // Affiche l'image du hasard :p
       print '<img src="' . $directory_uri . $image_afficher . ' border="0" />';
        }
        }
       ?>
       ```
   
 * Here’s the path to my theme file :
    [http://127.0.0.1/blog/wp-content/themes/fashionpro/](http://127.0.0.1/blog/wp-content/themes/fashionpro/)
 * My logo’s folder :
    [http://127.0.0.1/blog/wp-content/themes/fashionpro/images/logo/](http://127.0.0.1/blog/wp-content/themes/fashionpro/images/logo/)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Random logo script not working ?](https://wordpress.org/support/topic/random-logo-script-not-working/)
 *  Thread Starter [JohnWinch](https://wordpress.org/support/users/johnwinch/)
 * (@johnwinch)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/random-logo-script-not-working/#post-1658064)
 * Thanks you for your answer but it didn’t work.
    Is there an another way to display
   randomly a logo from a folder ?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Posts pagination](https://wordpress.org/support/topic/posts-pagination-1/)
 *  Thread Starter [JohnWinch](https://wordpress.org/support/users/johnwinch/)
 * (@johnwinch)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/posts-pagination-1/#post-1650848)
 * I don’t have a website, I’m working with Wamp. There’s no HTML in the nextpage
   tag, how can he break my current HTLM tags ?
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Trouble with creating a child theme](https://wordpress.org/support/topic/trouble-with-creating-a-child-theme/)
 *  Thread Starter [JohnWinch](https://wordpress.org/support/users/johnwinch/)
 * (@johnwinch)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/trouble-with-creating-a-child-theme/#post-1633876)
 * No need to apologies, I really appreciate the time you spent by helping me.
 * Here’s the code form firebug :
    <link media=”screen” href=”[http://127.0.0.1/wordpresstest/wp-content/themes/fashionpro/style.css&#8221](http://127.0.0.1/wordpresstest/wp-content/themes/fashionpro/style.css&#8221);
   type=”text/css” rel=”stylesheet”>
 * Despite the theme description in the wordpress’s administration panel who say
   that the css are in fashionprochild, apparently the css is called from fashionpro.
 * Is there a problem with the path used to load the theme ?
    [@import](https://wordpress.org/support/users/import/)
   url(“../fashionpro/style.css”);
 * > Current Theme
   >  FashionPro 1.0.1 by Roy Guan
   > Child theme for Fashionpro.
   > The template files are located in /themes/fashionpro. The stylesheet files 
   > are located in /themes/fashionprochild. FashionPro uses templates from FashionPro.
   > Changes made to the templates will affect both themes.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Trouble with creating a child theme](https://wordpress.org/support/topic/trouble-with-creating-a-child-theme/)
 *  Thread Starter [JohnWinch](https://wordpress.org/support/users/johnwinch/)
 * (@johnwinch)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/trouble-with-creating-a-child-theme/#post-1633866)
 * I’ve downloaded the extension, how do I check if the right css is called ?
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Trouble with creating a child theme](https://wordpress.org/support/topic/trouble-with-creating-a-child-theme/)
 *  Thread Starter [JohnWinch](https://wordpress.org/support/users/johnwinch/)
 * (@johnwinch)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/trouble-with-creating-a-child-theme/#post-1633730)
 * How can I do this myself ?
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Trouble with creating a child theme](https://wordpress.org/support/topic/trouble-with-creating-a-child-theme/)
 *  Thread Starter [JohnWinch](https://wordpress.org/support/users/johnwinch/)
 * (@johnwinch)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/trouble-with-creating-a-child-theme/#post-1633708)
 * I’m working on Wamp, I’m sorry it’s not online 🙁
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Trouble with creating a child theme](https://wordpress.org/support/topic/trouble-with-creating-a-child-theme/)
 *  Thread Starter [JohnWinch](https://wordpress.org/support/users/johnwinch/)
 * (@johnwinch)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/trouble-with-creating-a-child-theme/#post-1633676)
 * Yes, I’ve activated my child theme 😉
 * Current Theme
    FashionPro 1.0.1 by Roy Guan
 * Child theme for Fashionpro.
 * The template files are located in /themes/fashionpro. The stylesheet files are
   located in /themes/fashionprochild. FashionPro uses templates from FashionPro.
   Changes made to the templates will affect both themes.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Trouble with creating a child theme](https://wordpress.org/support/topic/trouble-with-creating-a-child-theme/)
 *  Thread Starter [JohnWinch](https://wordpress.org/support/users/johnwinch/)
 * (@johnwinch)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/trouble-with-creating-a-child-theme/#post-1633667)
 * Thanks you for your answer. I’ve corrected it, cleared the cache of Firefox but
   nothing has changed. I don’t understand why this don’t work.
 * Anyone got any ideas ?

Viewing 14 replies - 1 through 14 (of 14 total)