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

  1. heybrookeashley
    Posted 6 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
    Posted 6 years ago #

    I am looking for the same answer. Please help.

  3. bobbyvbobby
    Posted 6 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!


  4. klovesj
    Posted 6 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', {
    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
    Posted 6 years ago #

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

  6. trusco1973
    Posted 6 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?


  7. chrisgavin
    Posted 5 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