WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Psychosopher
    Member
    Posted 3 months 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 3 months 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 2 months ago #

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

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.