WordPress.org

Ready to get started?Download WordPress

Forums

Minimalist Theme - Don't want most recent post content to be hidden (7 posts)

  1. heybrookeashley
    Member
    Posted 4 years ago #

    I'm using the Minimalist Theme by Joey Robinson.

    I love the accordion style of the blog but I want to find a way to make the most recent blog post content completely visible by default and just have all the others hidden like normal, where you have to click on the header to see it.

    Can anyone help?

  2. Rfrimel
    Member
    Posted 4 years ago #

    I am looking for the same answer. Please help.

  3. bobbyvbobby
    Member
    Posted 4 years ago #

    I would be thrilled with the same ANSWER.

    If anyone finds it please post a link or code here in order to make the alteration the to the site. Would be very appreciated!

    Thanks!!

  4. klovesj
    Member
    Posted 4 years ago #

    You need to edit the script.js file in the scripts folder.

    find the code:

    window.addEvent('domready', function() {
    var myAccordion = new Accordion($('maincol'), 'h2.contentheader', 'div.content', {
    opacity:true,
    display: -1,
    duration: 300,
    alwaysHide: true,
    
    		onActive: function(contentheader, content){
    			contentheader.setStyle('font-weight', 'bold');
    		},
    		onBackground: function(contentheader, content){
    			contentheader.setStyle('font-weight', 'bold');
    		}
    });
    });

    and change the display: -1, to display: 0,

  5. r4z4
    Member
    Posted 4 years ago #

    I was also wondering how to do this and klovesj suggestion works perfectly. Thanks!

  6. trusco1973
    Member
    Posted 4 years ago #

    Sorry, I noted that at the opening of that theme, first voice is showned for a while and then closed.
    Is that problem fixable, without using fixing right above?

    thanks
    Truscp

  7. chrisgavin
    Member
    Posted 3 years ago #

    @klovesj Great solution, thanks so much, that works.

    The first time I got it wrong and screwed up my menu in the side bar. I advise anyone applying this change to look very carefully at the js code, because there are two parts of the code which look very similiar. Make sure you apply this code to the part that applies to the content rather than the menu :)

Topic Closed

This topic has been closed to new replies.

About this Topic