WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. morgenstary
    Member
    Posted 4 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'); ?>.
    </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(); ?>

  2. morgenstary
    Member
    Posted 4 years ago #

    bump

  3. mark_r-a
    Member
    Posted 4 years ago #

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

  4. Skarabe
    Member
    Posted 3 years ago #

    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,

Topic Closed

This topic has been closed to new replies.

About this Topic