Title: baudesign's Replies | WordPress.org

---

# baudesign

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

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

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 49 total)

1 [2](https://wordpress.org/support/users/baudesign/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/baudesign/replies/page/3/?output_format=md)
[4](https://wordpress.org/support/users/baudesign/replies/page/4/?output_format=md)
[→](https://wordpress.org/support/users/baudesign/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Easy Digital Downloads – eCommerce Payments and Subscriptions made easy] Database user roles: uninstall](https://wordpress.org/support/topic/database-user-roles-uninstall/)
 *  Thread Starter [baudesign](https://wordpress.org/support/users/baudesign/)
 * (@baudesign)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/database-user-roles-uninstall/#post-5001011)
 * Well, yes, from the plugin repository on the WordPress.org site.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Ia3 theme help needed!](https://wordpress.org/support/topic/ia3-theme-help-needed/)
 *  [baudesign](https://wordpress.org/support/users/baudesign/)
 * (@baudesign)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/ia3-theme-help-needed/page/2/#post-1539351)
 * …oh, and if I may add to this, the gallery option has been disabled in iA3.
 * [http://en.support.files.wordpress.com/2009/09/gallery-settings.gif&#8221](http://en.support.files.wordpress.com/2009/09/gallery-settings.gif&#8221);
 * Unavailable in the Media Library, hence no gallery shortcode. This should be 
   fixed.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Ia3 theme help needed!](https://wordpress.org/support/topic/ia3-theme-help-needed/)
 *  [baudesign](https://wordpress.org/support/users/baudesign/)
 * (@baudesign)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/ia3-theme-help-needed/page/2/#post-1539349)
 * Hi everyone,
 * I hope that this might help setting up a gallery with the iA3 theme.
 * First of all, the `gallery.php` template is not a template per se. You can refer
   to it in order to set up your own template using the default template drop down
   option.
 * Now, if you notice the code in this template:
 *     ```
       <ul class="containsGallery">
       <li class="G1"><a href="http://www.placeholder-image.com/image/288x288" rel="gallery-1"><img alt="" src="http://www.placeholder-image.com/image/142x142" title="" /></a></li>
       <li class="G1"><a href="http://www.placeholder-image.com/image/288x288" rel="gallery-1"><img alt="" src="http://www.placeholder-image.com/image/142x142" title="" /></a></li>
       <li class="G1"><a href="http://www.placeholder-image.com/image/288x288" rel="gallery-1"><img alt="" src="http://www.placeholder-image.com/image/142x142" title="" /></a></li>
       <li class="G1"><a href="http://www.placeholder-image.com/image/288x288" rel="gallery-1"><img alt="" src="http://www.placeholder-image.com/image/142x142" title="" /></a></li>
       <li class="G1"><a href="http://www.placeholder-image.com/image/288x288" rel="gallery-1"><img alt="" src="http://www.placeholder-image.com/image/142x142" title="" /></a></li>
       <li class="G1"><a href="http://www.placeholder-image.com/image/288x288" rel="gallery-1"><img alt="" src="http://www.placeholder-image.com/image/142x142" title="" /></a></li>
       <li class="G1"><a href="http://www.placeholder-image.com/image/288x288" rel="gallery-1"><img alt="" src="http://www.placeholder-image.com/image/142x142" title="" /></a></li>
       <li class="G1"><a href="http://www.placeholder-image.com/image/288x288" rel="gallery-1"><img alt="" src="http://www.placeholder-image.com/image/142x142" title="" /></a></li>
       </ul><!-- .containsGallery -->
       ```
   
 * …you have an unordered list with a class `.containsGallery`. This is the key 
   to trigger fancybox lightbox effect.
 * Why? Well, if you look into the code of the `ia3.js`file, you will notice this
   line:
 * `{jQuery(".containsGallery a,.eStore-thumbnail a, a.enlarge").fancybox [...]`
 * What does this thing say? It says that if you have an anchor `a` under an element
   with the `containsGallery` class, it will be fancyboxed! The same goes with `
   eStore-thumbnail`, obviously a class specific to the Information Architects Web
   site, but most of all, if you look at the third option, any anchor that has the`
   enlarge` class: `a.enlarge`.
 * So, if you want to have a fancybox effect, just put the `enlarge` class to any
   anchor, and it will be triggered.
 * Ok, now that we know that, you might have tried it just using the `gallery.php`
   template without changing anything to it; you might have clicked on a thumbnail,
   and you might have noticed that nothing happened except for the little spinning
   icon. The reason: `http://www.placeholder-image.com/image/288x288` produces no
   image, as far as I understand. Try this: repace all those lines by `http://dummyimage.
   com/288x288/000/fff.jpg` (Dummy Image being another of those free placeholder
   image service on the Web), and you will see that it works fine.
 * Now back to our original question: how do we set up a gallery with the iA3 theme?
   The short answer, by hard coding it in a WordPress page.
    1. Create a new page, and use the `default` template (yea, i know, kind of confusing);
    2. Use the `html`tab;
    3. Create your gallery with the links to you images, and do not specify any width
       or height (the CSS will take care of it);
    4. Make sure that the `ul` above has the `containsGallery` class;
    5. For a one column width, use G1 (it is a column grid structure, i presume that
       it means Grid 1), for a two column grid, G2, and so forth;
 * I hope that this might have helped a bit.
 * You want to try it, just cut and paste this code in your WordPress page editor,
   and preview, you will see for yourself:
 *     ```
       <h1>Category Name</h1>
       <ul class="containsGallery">
       <li class="G1"><a href="http://dummyimage.com/600x600/000/fff.jpg" rel="gallery-1"><img alt="" src="http://dummyimage.com/420x420/ddd/fafafa.jpg" title="" /></a></li>
       <li class="G1"><a href="http://dummyimage.com/600x600/000/fff.jpg" rel="gallery-1"><img alt="" src="http://dummyimage.com/420x420/ddd/fafafa.jpg" title="" /></a></li>
       <li class="G1"><a href="http://dummyimage.com/600x600/000/fff.jpg" rel="gallery-1"><img alt="" src="http://dummyimage.com/420x420/ddd/fafafa.jpg" title="" /></a></li>
       <li class="G1"><a href="http://dummyimage.com/600x600/000/fff.jpg" rel="gallery-1"><img alt="" src="http://dummyimage.com/420x420/ddd/fafafa.jpg" title="" /></a></li>
       <li class="G1"><a href="http://dummyimage.com/600x600/000/fff.jpg" rel="gallery-1"><img alt="" src="http://dummyimage.com/420x420/ddd/fafafa.jpg" title="" /></a></li>
       <li class="G1"><a href="http://dummyimage.com/600x600/000/fff.jpg" rel="gallery-1"><img alt="" src="http://dummyimage.com/420x420/ddd/fafafa.jpg" title="" /></a></li>
       <li class="G1"><a href="http://dummyimage.com/600x600/000/fff.jpg" rel="gallery-1"><img alt="" src="http://dummyimage.com/420x420/ddd/fafafa.jpg" title="" /></a></li>
       <li class="G1"><a href="http://dummyimage.com/600x600/000/fff.jpg" rel="gallery-1"><img alt="" src="http://dummyimage.com/420x420/ddd/fafafa.jpg" title="" /></a></li>
       </ul><!-- .containsGallery -->
       ```
   
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [First element in a list: class=”cat-item-first”](https://wordpress.org/support/topic/first-element-in-a-list-classcat-item-first/)
 *  Thread Starter [baudesign](https://wordpress.org/support/users/baudesign/)
 * (@baudesign)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/first-element-in-a-list-classcat-item-first/#post-1224369)
 * Thanks to Chris over at [Thematic Support](http://themeshaper.com/forums/topic/first-element-in-a-list-classcat-item-first#post-6775),
   the solution to my question was:
 *     ```
       function add_markup($output) {
           return preg_replace('/cat-item/', 'cat-item cat-item-first', $output, 1);
       }
       add_filter('wp_list_categories', 'add_markup');
       ```
   
 * Thanks to all of you guys who looked at my question, stvwlf, t31os_
 * Pat
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin: Yoast Breadcrumbs] Problem with accented letters in options](https://wordpress.org/support/topic/problem-with-accented-letters-in-yoast-breadcrumbs-options/)
 *  [baudesign](https://wordpress.org/support/users/baudesign/)
 * (@baudesign)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/problem-with-accented-letters-in-yoast-breadcrumbs-options/#post-1192274)
 * In the meantime, you can use `&ecirc;` instead of ê, and it solves the problem,
   du moins en français.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [First element in a list: class=”cat-item-first”](https://wordpress.org/support/topic/first-element-in-a-list-classcat-item-first/)
 *  Thread Starter [baudesign](https://wordpress.org/support/users/baudesign/)
 * (@baudesign)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/first-element-in-a-list-classcat-item-first/#post-1224272)
 * This list is automatically generated by WP. It lists the categories of you blog
   in the sidebar. And the classes are automatically applied by WP, they come from
   the classes.php file in the _wp-includes_ folder.
 * Some code pasted here:
 *     ```
       if ( 'list' == $args['style'] ) {
       			$output .= "\t<li";
       			$class = 'cat-item cat-item-'.$category->term_id;
       			if ( isset($current_category) && $current_category && ($category->term_id == $current_category) )
       				$class .=  ' current-cat';
       			elseif ( isset($_current_category) && $_current_category && ($category->term_id == $_current_category->parent) )
       				$class .=  ' current-cat-parent';
       			$output .=  ' class="'.$class.'"';
       			$output .= ">$link\n";
       		} else {
       			$output .= "\t$link<br />\n";
       		}
       ```
   
 * I am no PHP programmer, but I have a good idea of what it can be done, and I 
   suppose that you could create a function that would say…
 * if li is the first element in the list, then apply cat-item-first class on top
   of cat-item and cat-item-[X], where X is a number.
 * But again, I do not want to modify the classes.php file. I use thematic framework.
   I would like to add this function in the function.php file.
 * Possible?
 * Thanks.
 * Pat
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin: Yoast Breadcrumbs] Problem with accented letters in options](https://wordpress.org/support/topic/problem-with-accented-letters-in-yoast-breadcrumbs-options/)
 *  [baudesign](https://wordpress.org/support/users/baudesign/)
 * (@baudesign)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/problem-with-accented-letters-in-yoast-breadcrumbs-options/#post-1192273)
 * Anyone following this subjet? The problem has not been solved. Je suis ici, et
   je cherche toujours: é, à, ê, où, ici…
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Problem with “current_page_item” navigation highlighting](https://wordpress.org/support/topic/problem-with-current_page_item-navigation-highlighting/)
 *  [baudesign](https://wordpress.org/support/users/baudesign/)
 * (@baudesign)
 * [18 years, 5 months ago](https://wordpress.org/support/topic/problem-with-current_page_item-navigation-highlighting/page/3/#post-528505)
 * Well thanks to you guys, and thanks to Google! I have been scratching my head
   for the last four hours to finally having found this post.
 * I use the latest WP version 2.3.1 and the bug is obviously still there.
 * The solution from munzli above worked fine for me. Thanks for suggesting it.
 * Now… good night.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [if… elseif… else… I am lost.](https://wordpress.org/support/topic/if-elseif-else-i-am-lost/)
 *  Thread Starter [baudesign](https://wordpress.org/support/users/baudesign/)
 * (@baudesign)
 * [18 years, 5 months ago](https://wordpress.org/support/topic/if-elseif-else-i-am-lost/#post-660067)
 * Sorry Kafakaesqui, you were right all the way. I had not noticed that if `( is_home()){`
   was outside my main `<div>`. Your code looks much better than mine. 🙂 And it
   works perfectly well.
 * Thanks again. I really appreciate.
 * Patrick
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [if… elseif… else… I am lost.](https://wordpress.org/support/topic/if-elseif-else-i-am-lost/)
 *  Thread Starter [baudesign](https://wordpress.org/support/users/baudesign/)
 * (@baudesign)
 * [18 years, 5 months ago](https://wordpress.org/support/topic/if-elseif-else-i-am-lost/#post-659986)
 * Thanks for the reply kafkaesqui.
 * I have not tried your suggestion, but looking at it, it would not work.
 * What I am tring to do is this:
 * 1. On the home page, if the latest post has an image associated to it(custom 
   field), display that image;
 * 2. On the home page, if the latest post has no associated image, then display
   the default image (some logo, or whatever else);
 * 3. And if you are on another page than the home page, then, do not show any image
   at all.
 * My code works, no problem there. But It seems strange to me (I am no PHP programmer)
   that there is nothing after the last “else” conditional statement:
 * else { } ?>
 * Should’n there be something between the brackets?
 * Thanks
 * Patrick
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [if… elseif… else… I am lost.](https://wordpress.org/support/topic/if-elseif-else-i-am-lost/)
 *  Thread Starter [baudesign](https://wordpress.org/support/users/baudesign/)
 * (@baudesign)
 * [18 years, 5 months ago](https://wordpress.org/support/topic/if-elseif-else-i-am-lost/#post-659860)
 * My problem is partly solved with this code:
 *     ```
       <div id="latest-post-image">
         <?php if (get_post_meta($post->ID, 'latest_home_img', true) && (is_home()) ) { ?>
   
       Show the associated image
   
         <?php } else if (!get_post_meta($post->ID, 'latest_home_img', true) && (is_home()) ) { ?>
   
       Show the default image
   
         <?php } else {  ?>
   
         <?php } ?>
       </div>
       ```
   
 * Oddly, this works perfectly. But isn’t there suppose to be something at the end
   after “else”, like echo empty, or echo “nothing”, or exit or…?
 * Thanks
 * Patrick
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Justin Blanton’s Smart Archives: character encoding issue](https://wordpress.org/support/topic/justin-blantons-smart-archives-character-encoding-issue/)
 *  Thread Starter [baudesign](https://wordpress.org/support/users/baudesign/)
 * (@baudesign)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/justin-blantons-smart-archives-character-encoding-issue/#post-653593)
 * The clue is explained here:
 * strftime()
 * The solution, for me:
 * setlocale(LC_ALL,’fr_FR.UTF-8′); // set localization language French, with UTF-
   8 encoding
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Justin Blanton’s Smart Archives: character encoding issue](https://wordpress.org/support/topic/justin-blantons-smart-archives-character-encoding-issue/)
 *  Thread Starter [baudesign](https://wordpress.org/support/users/baudesign/)
 * (@baudesign)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/justin-blantons-smart-archives-character-encoding-issue/#post-653573)
 * Everything is generated by the PHP program, so it looks. There are no months 
   in the script itself. Perhaps it has to do with `setlocale(LC_ALL,WPLANG); //
   set localization language` Any idea?
 * I tried to get in touch with the plugin developer, but unless his spam filter
   trashes my message because there is a hyperlink inlcuded in it, he does not respond.
 * Thanks for any suggestion.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Language issues in themes](https://wordpress.org/support/topic/language-issues-in-themes/)
 *  Thread Starter [baudesign](https://wordpress.org/support/users/baudesign/)
 * (@baudesign)
 * [19 years ago](https://wordpress.org/support/topic/language-issues-in-themes/#post-558632)
 * Nothing?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [RSS not displaying full text](https://wordpress.org/support/topic/rss-not-displaying-full-text/)
 *  [baudesign](https://wordpress.org/support/users/baudesign/)
 * (@baudesign)
 * [19 years, 5 months ago](https://wordpress.org/support/topic/rss-not-displaying-full-text/#post-339588)
 * Well, I do not get it. With Firefox internal Feed reader, I get the summary. 
   With Netvibes, I get the summary (But I get the complete text reading Gizmodo!?).
 * But then, when I use the Sage plug-in in Firefox, this thing can see the whole
   content, or the summary, when I switch the option in the Control Panel of my 
   WordPress site. In other words, only Sage works fine.
 * Pfff!

Viewing 15 replies - 1 through 15 (of 49 total)

1 [2](https://wordpress.org/support/users/baudesign/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/baudesign/replies/page/3/?output_format=md)
[4](https://wordpress.org/support/users/baudesign/replies/page/4/?output_format=md)
[→](https://wordpress.org/support/users/baudesign/replies/page/2/?output_format=md)