ThemeShaper Forums » Thematic

[closed]

Sticky Post as in Neutica+ Demo

(5 posts)
  • Started 10 years ago by demssite
  • Latest reply from Chris
  • This topic is not resolved
  1. demssite
    Member

    Hi, I'm newbie in wordpress develop, and i'n working with a Neutica+ design, but i'm trying to achieve the same Allan Cole does in his demo -> http://www.fthrwght.com/neuticaplus/demo/ in his first post that has a different ID (instead of post-onenumber is neutica-feature), and he gives to it a backgorund image and a different aspect to highlight it.

    My question is how to get this done.

    Thanks in advance.

    Diego Santamarta.

    Posted 10 years ago #
  2. I'm assuming the sticky post gets a class assigned to it. You should be able to style that sticky post on the homepage by using css:

    .sticky {border:2px solid #333; padding:10px;}
    Posted 10 years ago #
  3. jtd131
    Member

    How do you get the sticky post feature to work? I checked it in the Dashboard, but I don't get the featured section like he has on the demo.. Do either of you (or anyone else) know how I can get that "featured" section under the header (and the rollover effect).

    Posted 10 years ago #
  4. Hi jtd131,

    Judging from the picture on the Neutica+ intro page on fthrwght.com, there is a them options page in the admin for Neutica+ In the admin: appearance>themes>childtheme-options

    It looks like there is a check box to activate the featured bit in there.

    -Gene

    Posted 10 years ago #
  5. jtd131,

    you should buy this theme for 15$!

    Ok .. this is one possible solution to create the wrapping:

    function remove_loop() {
    	remove_action('thematic_indexloop', 'thematic_index_loop');
    }
    add_action('init', 'remove_loop');
    
    function my_index_loop() {
    	global $options;
    	foreach ($options as $value) {
        	if (get_option( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; }
        	else { $$value['id'] = get_option( $value['id'] ); }
        }
    		/* Count the number of posts so we can insert a widgetized area */ $count = 1;
    		while ( have_posts() ) : the_post(); 
    
    			if (is_sticky()) { ?>
    
    			<div id="myFeature">
    
    			<?php
    
    			} ?>
    
    			<div id="post-<?php the_ID() ?>" class="<?php thematic_post_class() ?>">
        			<?php thematic_postheader(); ?>
    				<div class="entry-content">
    <?php thematic_content(); ?>
    
    				<?php wp_link_pages('before=<div class="page-link">' .__('Pages:', 'thematic') . '&after=</div>') ?>
    				</div>
    				<?php thematic_postfooter(); ?>
    			</div><!-- .post -->
    
    			<?php
    			if (is_sticky()) { ?>
    
    			</div><!-- .myFeature -->
    
    			<?php
    
    			} 
    
    				comments_template();
    
    				if ($count==$thm_insert_position) {
    						get_sidebar('index-insert');
    				}
    				$count = $count + 1;
    		endwhile;
    }
    add_action('thematic_indexloop', 'my_index_loop');

    But don't ask for the CSS part!

    Chris

    Posted 10 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.