Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter jenjeant

    (@jenjeant)

    You all are fantastic!!!

    richardginn and henkholland, I tried the array as you suggested and now my page looks good! I can’t thank you all enough for your time… it is truly appreciated.

    Enjoy your weekend!

    Thread Starter jenjeant

    (@jenjeant)

    Hi henkholland,

    Yes, “The Chili Pepper Kitchen,” is the new category 78. I didn’t realize it had switched from cat-3 to cat-6.

    I wrote the 78 just after the 23 number so that it is: (20,22,7,21,23,78).

    And yes, the other category nrs matched the array.

    Thank you.

    Thread Starter jenjeant

    (@jenjeant)

    Thank you henkholland. I wasn’t able to find an options/settings for the Arthemia theme in the Dashboard, but I did hover over the categories to get the category-id number (78) so I added this to my index.php file.

    Now, the category is finally showing up on the page, but the CSS is not taking effect. Looking at the style sheet, I was able to determine that this would be “cat-3” in the CSS.

    Any idea how I can get the style to apply to this category? I’m looking over the index.php file and am not seeing where to hook them up.

    Thank you again for helping me out. I really appreciate your time.

    Thread Starter jenjeant

    (@jenjeant)

    henkholland, thanks for your suggestion. Yes, I verified that my post under cat-3 is published.

    I really appreciate the help.

    Thread Starter jenjeant

    (@jenjeant)

    Sheried, I agree. I just hope she doesn’t do this to someone else. I know HTML/CSS, but have never worked with WordPress before so this whole thing has been so confusing!

    The first file below is the index.php and the second is the functions.php. If anyone spots the problem, please let me know. I haven’t been able to get a response from Colorlabs. Thanks!

    <?php get_header(); ?>
    
    	<?php if(!is_paged()) { ?>
    
    	<div id="top" class="clearfloat">
    
    <div id="headline">
    
    		<img src="<?php echo get_option('home'); ?>/wp-content/themes/arthemia/images/headline.png" width="75px" height="21px" alt="" />
    
    		<?php query_posts("showposts=1&category_name=Headline"); ?>
    
    		<?php while (have_posts()) : the_post(); ?>	
    
    	<div class="title"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></div>
    
    	<div class="meta">[<?php the_time('j M Y') ?> | <?php comments_popup_link('No Comment', 'One Comment', '% Comments');?> | <?php if(function_exists('the_views')) { the_views(); } ?>]</div>	
    
    	<?php $values = get_post_custom_values("Headline");?>
    
     	<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
    
    <img src="<?php echo bloginfo('template_url'); ?>/scripts/timthumb.php?src=/<?php
    
    $values = get_post_custom_values("Image"); echo $values[0]; ?>&w=300&h=275&zc=1&q=100"
    
    alt="<?php the_title(); ?>" class="left" width="300px" height="275px"  /></a>
    
    	<?php the_excerpt(); ?>
    
    	<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">Read the full story &raquo;</a>
    
    	<?php endwhile; ?>
    
    		</div>
    
    	<div id="featured">
    
    	<img src="<?php echo get_option('home'); ?>/wp-content/themes/arthemia/images/featured.png" width="72px" height="17px" alt="" />
    
    	<?php query_posts("showposts=4&category_name=Featured"); $i = 1; ?>
    
          	<?php while (have_posts()) : the_post(); ?>
    
    	<div class="clearfloat">
    
    	<?php $values = get_post_custom_values("Image");
    
    	if (isset($values[0])) { ?>
    
          <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
    
    	<img src="<?php echo bloginfo('template_url'); ?>/scripts/timthumb.php?src=/<?php
    
    $values = get_post_custom_values("Image"); echo $values[0]; ?>&w=100&h=65&zc=1&q=100"
    
    alt="<?php the_title(); ?>" class="left" width="100px" height="65px"  /></a>
    
          <?php } ?>
    
    	<div class="info"><a href="<?php the_permalink() ?>" rel="bookmark" class="title"><?php the_title(); ?></a>
    
    <div class="meta">[<?php the_time('j M Y') ?> | <?php comments_popup_link('No Comment', 'One Comment', '% Comments');?> | <?php if(function_exists('the_views')) { the_views(); } ?>]</div>	
    
    </div>
    
        	</div>
    
          <?php endwhile; ?>
    
    	</div>
    
    </div>	
    
    	<div id="middle" class="clearfloat">
    
    	<img src="<?php echo get_option('home'); ?>/wp-content/themes/arthemia/images/category.png" class="clearfloat" alt="" />
    
    	<?php $display_categories = array(20,22,7,21,23); $i = 1;
    
    	foreach ($display_categories as $category) { ?>
    
    	<div id="cat-<?php echo $i; ?>" class="category">
    
    		<?php query_posts("showposts=1&cat=$category")?>
    
    		<span class="cat_title"><a href="<?php echo get_category_link($category);?>"><?php single_cat_title(); ?></a></span>
    
    		<a href="<?php echo get_category_link($category);?>"><?php echo category_description($category); ?></a>
    
    	</div>
    
    	<?php $i++; ?>
    
        	<?php } ?>
    
    	</div>
    
    	<?php } ?>
    
    	<div id="bottom" class="clearfloat">
    
    	<div id="front-list">	
    
    	<?php
    
          $page = (get_query_var('paged')) ? get_query_var('paged') : 1;
    
          query_posts("cat=-27,-28&paged=$page&posts_per_page=5"); ?>
    
    	<?php while (have_posts()) : the_post(); ?>		
    
    	<div class="clearfloat">
    
    	<h3 class=cat_title><?php the_category(', '); ?> &raquo</h3>
    
    	<div class="title"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></div>
    
    	<div class="meta">[<?php the_time('j M Y') ?> | <?php comments_popup_link('No Comment', 'One Comment', '% Comments');?> | <?php if(function_exists('the_views')) { the_views(); } ?>]</div>	
    
    	<div class="spoiler">
    
    	<?php	$values = get_post_custom_values("Image");
    
    	if (isset($values[0])) { ?>
    
          <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
    
    	<img src="<?php echo bloginfo('template_url'); ?>/scripts/timthumb.php?src=/<?php
    
    $values = get_post_custom_values("Image"); echo $values[0]; ?>&w=150&h=150&zc=1&q=100"
    
    alt="<?php the_title(); ?>" class="left" width="150px" height="150px"  /></a>
    
          <?php } ?>
    
    	<?php the_excerpt(); ?>
    
    	</div>
    
    	</div>
    
          <?php endwhile; ?>
    
    	<div class="navigation">
    
    		<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } 
    
    			else { ?>
    
                            <?php if(function_exists('wp_page_numbers')) : wp_page_numbers(); endif; ?>
    
    			<?php } ?>
    
    	</div>
    
    	</div>
    
    	<?php get_sidebar(); ?>
    
    	</div>	
    
    <?php get_footer(); ?>
    <?php if ( function_exists('register_sidebar') )
    {
    register_sidebar(array('name' => 'Sidebar Top','before_widget' => '','after_widget' => '','before_title' => '<h3>','after_title' => '</h3>'));
    register_sidebar(array('name' => 'Sidebar Left','before_widget' => '','after_widget' => '','before_title' => '<h3>','after_title' => '</h3>'));
    register_sidebar(array('name' => 'Sidebar Right','before_widget' => '','after_widget' => '','before_title' => '<h3>','after_title' => '</h3>'));
    register_sidebar(array('name' => 'Sidebar Bottom','before_widget' => '','after_widget' => '','before_title' => '<h3>','after_title' => '</h3>'));
    register_sidebar(array('name' => 'Footer Left','before_widget' => '','after_widget' => '','before_title' => '<h3>','after_title' => '</h3>'));
    register_sidebar(array('name' => 'Footer Center','before_widget' => '','after_widget' => '','before_title' => '<h3>','after_title' => '</h3>'));
    register_sidebar(array('name' => 'Footer Right','before_widget' => '','after_widget' => '','before_title' => '<h3>','after_title' => '</h3>'));
    } 
    
    remove_filter('get_the_excerpt', 'wp_trim_excerpt');
    add_filter('get_the_excerpt', 'custom_trim_excerpt');
    
    remove_filter('get_the_excerpt', 'wp_trim_excerpt');
    add_filter('get_the_excerpt', 'custom_trim_excerpt');
    
    function custom_trim_excerpt($text) { // Fakes an excerpt if needed
    global $post;
    	if ( '' == $text ) {
    		$text = get_the_content('');
    
    		$text = strip_shortcodes( $text );
    
    		$text = apply_filters('the_content', $text);
    		$text = str_replace(']]>', ']]>', $text);
    		$text = strip_tags($text);
    		$excerpt_length = apply_filters('excerpt_length', 90);
    		$words = explode(' ', $text, $excerpt_length + 1);
    		if (count($words) > $excerpt_length) {
    			array_pop($words);
    			array_push($words, '...');
    			$text = implode(' ', $words);
    		}
    	}
    	return $text;
    }
    
    ?>
    Thread Starter jenjeant

    (@jenjeant)

    I actually paid someone to build this website and, as I understand it, she purchased this premium arthemia theme. I can’t ask her about how she set this up because she abandoned the project, without giving me any information, and I’m still trying to figure how she set everything up.

    Thanks for the suggestion about the Appearance > Editor. I did check all my theme’s pages there, but I could not find the code that controls categories. Also, under the “Pages” section, I don’t have a “home” page, just the names of the content that appear in the menu bar.

    You mention a download if purchasing an arthemia theme. Is this download all of the files that she might have uploaded to my Web host?

    I contacted the Colorlabs that makes this theme and I’m really hoping they can help me sort this out.

    Thanks for your help.

    Thread Starter jenjeant

    (@jenjeant)

    Yes, I did.

    I just brought up my home page and look at the source code and I see that the category link is there, but that it is not enclosed in the CSS that the other category links are so maybe that’s why it’s not visible. I just can’t figure out what file this is that is controlling the main page or where to get to it on dashboard.

    Thanks for your time.

    Thread Starter jenjeant

    (@jenjeant)

    t31os_ you are wonderful! I logged back in and saw a “configuration” link next to the plugin that I didn’t see before. I finally got to change what I wanted.

    I really, really appreciate your help!

    Thanks much.

    Thread Starter jenjeant

    (@jenjeant)

    Thanks for your response. I found this setting on the dashboard, but this doesn’t match the two-sentence description that the search engine displays under my link. I just can’t figure out where this text is in WordPress.

    I appreciate your help!

    Thread Starter jenjeant

    (@jenjeant)

    Thanks for your quick response. I was wondering if it was just a matter of waiting or not.

    I really appreciate your help!

    Thread Starter jenjeant

    (@jenjeant)

    Thank you so much for your help! I really appreciate it.

Viewing 11 replies - 1 through 11 (of 11 total)