WordPress.org

Forums

Standard Widget Extensions
[resolved] Expanded widget? (3 posts)

  1. Edi Goetschel
    Member
    Posted 1 year ago #

    Is it possible (especially in "Single Expansion Mode") to define one widget of an accordion, for example the first one, as expanded when loading the page?

    https://wordpress.org/plugins/standard-widget-extensions/

  2. blogger323
    Member
    Plugin Author

    Posted 1 year ago #

    Psychosopher,

    To make widgets collapsed initially, you have to add some CSS code. For example, following is the CSS to make widgets collapsed except Recent Posts in TwentyFourteen's left sidebar.

    #primary-sidebar .widget h1+* {
      display: none;
    }
    
    #primary-sidebar .widget_recent_entries h1+* {
      display: block;
    }

    All widgets in the sidebar will be collapsed by the first CSS block. And the Recent Posts widget will be uncollapsed by the second.

    This is just a concept and you might have to adjust code to your theme. When you find it difficult, I will help you if you can show me your site.

  3. blogger323
    Member
    Plugin Author

    Posted 1 year ago #

    After a few weeks of no response, I'd like to mark this as resolved because I've answered enough information.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Standard Widget Extensions
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.