Title: manfer's Replies | WordPress.org

---

# manfer

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

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

 Search replies:

## Forum Replies Created

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

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Collapsing Categories] [Plugin: Collapsing Categories] expand on hover](https://wordpress.org/support/topic/plugin-collapsing-categories-expand-on-hover/)
 *  [manfer](https://wordpress.org/support/users/manfer/)
 * (@manfer)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-collapsing-categories-expand-on-hover/#post-2933261)
 * This was the thread I suppose:
 * [http://wordpress.org/support/topic/plugin-collapsing-categories-expand-sub-category-list-without-click-on-the-archive](http://wordpress.org/support/topic/plugin-collapsing-categories-expand-sub-category-list-without-click-on-the-archive)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Collapsing Categories] [Plugin: Collapsing Categories] changing the font size on this plug in](https://wordpress.org/support/topic/plugin-collapsing-categories-changing-the-font-size-on-this-plug-in/)
 *  [manfer](https://wordpress.org/support/users/manfer/)
 * (@manfer)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-collapsing-categories-changing-the-font-size-on-this-plug-in/#post-2841633)
 * This is now what you have at the end of your indigo.css file:
 *     ```
       /*--[ PRINT STYLES ]--------------------------------------------------------------------------------*/
       @media print {
         {
           background: transparent !important;
           color: #444 !important;
           text-shadow: none;
       	}
         a, a:visited {
           color: #444 !important;
           text-decoration: underline;
         }
         a:after {
           content: " (" attr(href) ")";
         }
         abbr:after {
           content: " (" attr(title) ")";
         }
         .ir a:after {
           content: "";
         }
         /* Don't show links for images */
         pre, blockquote {
           border: 1px solid #999;
           page-break-inside: avoid;
         }
         img {
           page-break-inside: avoid;
         }
         @page  {
           margin: 0.5cm;
         }
         p, h2, h3 {
           orphans: 3;
           widows: 3;
         }
         h2, h3 {
           page-break-after: avoid;
         }
   
       .widget_collapscat li a {
           font-size: 2.6em;
       }
       .widget_collapscat ul li {
        font-size: 2.6em;
   
       }}
       ```
   
 * All of that is only for printing. If you want the rules for collapsing categories
   to be applied on the on screen version you see on your browser, that part of 
   code should be:
 *     ```
       .widget_collapscat li a {
           font-size: 2.6em;
       }
       .widget_collapscat ul li {
        font-size: 2.6em;
       }
       /*--[ PRINT STYLES ]--------------------------------------------------------------------------------*/
       @media print {
         {
           background: transparent !important;
           color: #444 !important;
           text-shadow: none;
       	}
         a, a:visited {
           color: #444 !important;
           text-decoration: underline;
         }
         a:after {
           content: " (" attr(href) ")";
         }
         abbr:after {
           content: " (" attr(title) ")";
         }
         .ir a:after {
           content: "";
         }
         /* Don't show links for images */
         pre, blockquote {
           border: 1px solid #999;
           page-break-inside: avoid;
         }
         img {
           page-break-inside: avoid;
         }
         @page  {
           margin: 0.5cm;
         }
         p, h2, h3 {
           orphans: 3;
           widows: 3;
         }
         h2, h3 {
           page-break-after: avoid;
         }
       } /* End of Print Styles */
       ```
   
 * With the collapsing categories rules above. Or:
 *     ```
       /*--[ PRINT STYLES ]--------------------------------------------------------------------------------*/
       @media print {
         {
           background: transparent !important;
           color: #444 !important;
           text-shadow: none;
       	}
         a, a:visited {
           color: #444 !important;
           text-decoration: underline;
         }
         a:after {
           content: " (" attr(href) ")";
         }
         abbr:after {
           content: " (" attr(title) ")";
         }
         .ir a:after {
           content: "";
         }
         /* Don't show links for images */
         pre, blockquote {
           border: 1px solid #999;
           page-break-inside: avoid;
         }
         img {
           page-break-inside: avoid;
         }
         @page  {
           margin: 0.5cm;
         }
         p, h2, h3 {
           orphans: 3;
           widows: 3;
         }
         h2, h3 {
           page-break-after: avoid;
         }
       } /* End of Print Styles */
   
       .widget_collapscat li a {
           font-size: 2.6em;
       }
       .widget_collapscat ul li {
        font-size: 2.6em;
       }
       ```
   
 * Closing print styles before the collapsing categories rules.
 * Hope it helps now.
 * Regards.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Collapsing Categories] [Plugin: Collapsing Categories] changing the font size on this plug in](https://wordpress.org/support/topic/plugin-collapsing-categories-changing-the-font-size-on-this-plug-in/)
 *  [manfer](https://wordpress.org/support/users/manfer/)
 * (@manfer)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-collapsing-categories-changing-the-font-size-on-this-plug-in/#post-2841631)
 * All CSS rules that you insert below
 *     ```
       /*--[ PRINT STYLES ]--------------------------------------------------------------------------------*/
       @media print {
       ```
   
 * are targeting the printed version of your website. All those CSS rules doesn’t
   apply to the on screen version you are seeing on your browser.
 * Move any rule that you intend to be applied to the on screen version above those
   lines. Or close the `@media print {` where the rules for the print version finish.
 * If you choose to move the rules above anyway close the `@media print {` because
   right now that rule is not closed.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Collapsing Categories] [Plugin: Collapsing Categories] changing the font size on this plug in](https://wordpress.org/support/topic/plugin-collapsing-categories-changing-the-font-size-on-this-plug-in/)
 *  [manfer](https://wordpress.org/support/users/manfer/)
 * (@manfer)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-collapsing-categories-changing-the-font-size-on-this-plug-in/#post-2841629)
 * If you provide a link then would be possible to know why that css doesn’t work
   for you.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Collapsing Categories] [Plugin: Collapsing Categories] changing the font size on this plug in](https://wordpress.org/support/topic/plugin-collapsing-categories-changing-the-font-size-on-this-plug-in/)
 *  [manfer](https://wordpress.org/support/users/manfer/)
 * (@manfer)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-collapsing-categories-changing-the-font-size-on-this-plug-in/#post-2841624)
 *     ```
       .widget_collapscat ul li {
         font-size: 1.2em;
       }
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Collapsing Categories] Collapsing Categories Not Working on Home Page](https://wordpress.org/support/topic/collapsing-categories-not-working-on-home-page/)
 *  [manfer](https://wordpress.org/support/users/manfer/)
 * (@manfer)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/collapsing-categories-not-working-on-home-page/#post-2827699)
 * I think the 3.4 issue has been resolved already. It would be nice if someone 
   marks this as resolved.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Collapsing Categories] Collapsing Categories doesn't work in WP 3.4](https://wordpress.org/support/topic/collapsing-categories-doesnt-work-in-wp-34/)
 *  [manfer](https://wordpress.org/support/users/manfer/)
 * (@manfer)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/collapsing-categories-doesnt-work-in-wp-34/#post-2832195)
 * I think the 3.4 issue has been resolved already. It would be nice if someone 
   marks this as resolved.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Collapsing Categories] [Plugin: Collapsing Categories] Expand sub category list without click on the archive](https://wordpress.org/support/topic/plugin-collapsing-categories-expand-sub-category-list-without-click-on-the-archive/)
 *  [manfer](https://wordpress.org/support/users/manfer/)
 * (@manfer)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-collapsing-categories-expand-sub-category-list-without-click-on-the-archive/#post-2850114)
 * The plugin doesn’t have that option. If you want that option you will have to
   hack the plugin yourself by editing the file collapsFunctions.js
 * In that file the function addExpandCollapse have to be changed to:
 *     ```
       function addExpandCollapse(id, expandSym, collapseSym, accordion) {
         jQuery('#' + id).on('mouseover', '.expand', function() {
           if (accordion==1) {
             var theDiv = jQuery(this).parent().parent().find('span.collapse').parent().find('div');
             jQuery(theDiv).hide('normal');
             jQuery(this).parent().parent().find('span.collapse').removeClass('collapse').addClass('expand');
             createCookie(theDiv.attr('id'), 0, 7);
           }
           jQuery('#' + id + ' .expand .sym').html(expandSym);
           expandCat(this, expandSym, collapseSym);
           return false;
         });
         jQuery('#' + id).on('click', '.collapse', function() {
           collapseCat(this, expandSym, collapseSym);
           return false;
         });
       }
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Collapsing Categories] Collapsing Categories Plugin not Excluding Category](https://wordpress.org/support/topic/collapsing-categories-plugin-not-excluding-category/)
 *  [manfer](https://wordpress.org/support/users/manfer/)
 * (@manfer)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/collapsing-categories-plugin-not-excluding-category/#post-2891955)
 * category slug
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Embed Grooveshark] [Plugin: Embed Grooveshark] WORKING GrooveShark playlist work-around (no 3rd party site required!)](https://wordpress.org/support/topic/plugin-embed-grooveshark-working-grooveshark-playlist-work-around-no-3rd-party-site-required/)
 *  Plugin Author [manfer](https://wordpress.org/support/users/manfer/)
 * (@manfer)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-embed-grooveshark-working-grooveshark-playlist-work-around-no-3rd-party-site-required/#post-2744549)
 * This plugin works perfectly and doesn’t use any third party page at all. It directly
   request the widget and songs from grooveshark.
 * Grooveshark hasn’t removed the widget at all. It is only now in a little different
   place inside the share popup. First you have to choose the more option at the
   bottom that says, embed, reddit, stumbleupon and that expand to show the link
   to get the embed code.
 * Nothing had changed and this plugin continue working as designed.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Collapsing Categories] Collapsing Categories: messing up blog home page](https://wordpress.org/support/topic/collapsing-categories-messing-up-blog-home-page/)
 *  [manfer](https://wordpress.org/support/users/manfer/)
 * (@manfer)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/collapsing-categories-messing-up-blog-home-page/#post-2859761)
 * That seems more probable the template being used on that page and though really
   it looks a little mess what it is done there it should work. Really it would 
   be much better to support widgets on the theme.
 * Anyway indeed it seems collapsing categories is affecting the posts data that
   are not showing many of the fields, like the posts content, excerpt…
 * I think I found the problem and it is on collapscatlist.php line 169 where there
   is a call to get_permalink in which the whole post object is used as parameter.
   Using the ID as parameter instead solves the problem. So changing line 169 of
   collapscatlist.php from:
 *     ```
       "'><a " .  "href='".get_permalink($post2).
       ```
   
 * to:
 *     ```
       "'><a " .  "href='".get_permalink($post2->ID).
       ```
   
 * should fix this.
 * Don’t ask me why that weird side effect is happening. I don’t know because at
   first it is correct code to send the $post object as parameter to get_permalink
   function.
 * Anyway take in mind that collapse categories is meant to be used inside a widget,
   the collapse/expand feature doesn’t work if you don’t use the widget so you would
   need to code it yourself or you can fool collapse categories to think it is part
   of a widget like this:
 *     ```
       echo '<ul id="widget-collapscat-nowidget-top" class="collapsing categories list">';
       collapsCat(array(
         'expand'        =>0,
         'useCookies'    => false,
         'expandCatPost' => true,
         'showPosts'     => true,
         'accordion'     => true,
         'number'        => 'nowidget'
       ));
       echo '</ul>';
       ```
   
 * This way the collapse/expand effect will work. You must tweak anyway the CSS 
   because the styling doesn’t work outside the widget. That should not be difficult.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Collapsing Categories] [Plugin: Collapsing Categories] Mouse-over link title](https://wordpress.org/support/topic/plugin-collapsing-categories-mouse-over-link-title/)
 *  [manfer](https://wordpress.org/support/users/manfer/)
 * (@manfer)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-collapsing-categories-mouse-over-link-title/#post-2867223)
 * There aren’t filters for widgets unless widget_text is supported on the widget
   and though I have not tested or reviewed the code probably it is not.
 * So you can:
 * 1) Edit the collapsing category code directly as stated before. (problem: lost
   on update).
 * 2) Use this technique [http://stackoverflow.com/questions/1385954/do-wordpress-widget-or-sidebar-hooks-exist](http://stackoverflow.com/questions/1385954/do-wordpress-widget-or-sidebar-hooks-exist).
   Where you use an intermediate buffer for the widgets output so you can filter
   it before echoing the buffer.
 * 3) Maybe use Widget Logic that in the description says it adds a widget_content
   filter. [http://wordpress.org/extend/plugins/widget-logic/](http://wordpress.org/extend/plugins/widget-logic/)
 * Collapsing categories plugin is not updated too often so really the first alternative
   is not so bad option in this case and you would only need to remove that string
   you don’t want. You don’t need to analyze code just remove the three times it
   appears in collapscatlist.php.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Collapsing Categories] Collapsing Categories: messing up blog home page](https://wordpress.org/support/topic/collapsing-categories-messing-up-blog-home-page/)
 *  [manfer](https://wordpress.org/support/users/manfer/)
 * (@manfer)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/collapsing-categories-messing-up-blog-home-page/#post-2859750)
 * Sorry but I understand nothing about the other post. You first show a code on
   a supposed loop.php file. Later you show the code of an index.php file that makes
   no use of that loop.php file and has this snippet.
 *     ```
       <div id="col-2">
       <h1><?php the_title();?></h1>
   
       <?php
   
       if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
       <p><?php the_content('Read more...'); ?>
       <?php endwhile; else: ?>
       <?php _e('Sorry, no posts matched your criteria.'); ?>
       <?php endif; ?>
   
       </div>
       ```
   
 * And on this snippet at least there is an error, the_title() outside The Loop.
   I really can’t see how that index.php matches the output on your site.
 * Are you really sure you know where the output comes from? Which are the files
   you have in your theme folder?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Collapsing Categories] Collapsing Categories: messing up blog home page](https://wordpress.org/support/topic/collapsing-categories-messing-up-blog-home-page/)
 *  [manfer](https://wordpress.org/support/users/manfer/)
 * (@manfer)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/collapsing-categories-messing-up-blog-home-page/#post-2859747)
 * I suppose it is because you are doing tests but makes no sense to change the 
   categories-list div into a span.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Collapsing Categories] Collapsing Categories: messing up blog home page](https://wordpress.org/support/topic/collapsing-categories-messing-up-blog-home-page/)
 *  [manfer](https://wordpress.org/support/users/manfer/)
 * (@manfer)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/collapsing-categories-messing-up-blog-home-page/#post-2859746)
 * If I understand correctly you say there is a problem on the center of the page,
   where the post listing is shown and you are almost sure the problem comes from
   collapsing categories so you only show us that code.
 * I think we would need to see the code that outputs those posts in the middle.
 * Are you sure you didn’t touch the template file that outputs that part of the
   page? The Loop seems to work correctly as the title, date and read more link 
   of each post is being displayed, so looks strange the_excerpt() not working in
   The Loop.

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

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