• morgenstary

    (@morgenstary)


    #

    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’); ?>.
    </div>

    </div>
    <?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>
    </div>

    <?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; ?>

    </div>
    </div>

    <?php get_footer(); ?>

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter morgenstary

    (@morgenstary)

    bump

    bump, would also like to gain the insight…

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

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

    with

    var myAccordion = new Accordion($('maincol'), 'h2.contentheader', 'div.content', {
    opacity:true,
    display: 0,
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Minimalist Theme Default Expanded Post Modification Code???’ is closed to new replies.