Minimalist Theme Default Expanded Post Modification Code??? (4 posts)

  1. morgenstary
    Posted 5 years ago #


    Hello All,

    I'd like to know if anyone knows how I might modify the "minimalist" theme to automatically show all of the contents of a post(s) without having to click on it. Right now how it works is when I go to my url, there is a post and then when I click on it it drops down showing the contents of the post. I would like to know if there's some code that will allow the entire post to appear, sort of like this website >>> http://viewerslikeu.com/

    My website is http://instantrecords.com/

    Thanks in advance for any help!

    More Specifically I'm looking for the code that would allow me to have "default expanded" posts as opposed to the posts being hidden until they're clicked. Here's the code for the index.php

    <?php get_header(); ?>
    <?php get_sidebar(); ?>

    <div id="wrapper" class="clearfix" >
    <div id="maincol" >

    <?php if (have_posts()) : ?><?php while (have_posts()) : the_post(); ?>

    <h2 class="contentheader"><?php the_title(); ?></h2>
    <div class="content">
    <div class="permalink">" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">Permanent Link</div>
    <?php the_content('Read more ยป'); ?>

    <?php link_pages('<p>Pages: ', '</p>', 'number'); ?>
    <div id="postinfotext">
    Posted: <?php the_time('F jS, Y') ?>
    Categories: <?php the_category(', ') ?>
    Tags: <?php the_tags(''); ?>
    Comments: "><?php comments_number('No Comments','1 Comment','% Comments'); ?>.

    <?php endwhile; ?>

    <div class="navigation">
    <span class="prevlink"><?php next_posts_link('Previous entries') ?></span>
    <span class="nextlink"><?php previous_posts_link('Next entries') ?></span>

    <?php else : ?>
    <h2 class="contentheader">Not found!</h2>
    <p>Could not find the requested page. Use the navigation menu to find your target, or use the search box below:</p>
    <?php include (TEMPLATEPATH . "/searchform.php"); ?>
    <?php endif; ?>


    <?php get_footer(); ?>

  2. morgenstary
    Posted 5 years ago #


  3. mark_r-a
    Posted 5 years ago #

    bump, would also like to gain the insight...

  4. Skarabe
    Posted 4 years ago #

    Think you can try to edit script.js file in scripts folder.

    var myAccordion = new Accordion($('maincol'), 'h2.contentheader', 'div.content', {
    display: -1,


    var myAccordion = new Accordion($('maincol'), 'h2.contentheader', 'div.content', {
    display: 0,

Topic Closed

This topic has been closed to new replies.

About this Topic