Forum Replies Created

Viewing 15 replies - 196 through 210 (of 268 total)
  • Should be that all you need to do is add The_Loop to a custom Page Template.

    You can use the link given by esmi if you want to be more specific about what posts are displayed (i.e. a certain category) or changing the order of posts.

    See also:

    Templates
    Using_Themes
    Theme_Development

    It’s very possible that they enter a custom excerpt for each post. There is an excerpt box right beneath the main content box when editing a post.

    Another possibility is that they have a plugin that simply uses the first full paragraph as an excerpt. I haven’t searched through the plugins to see if there is one that does that, but I wouldn’t be surprised if there are a few.

    Sorry, I was still typing mine and didn’t see Joseph’s response until after I posted. Same info, though!

    Beginning at line 1344 of your style.css, you have this:

    .art-contentLayout .art-content
    {
        position: relative;
        margin: 0;
        padding: 0;
        border: 0;
        float: left;
        overflow: hidden;
        width: 616px;
    }

    Either delete the overflow: hidden property, or change it to something like overflow: visible.

    Your functions file should be located at http://www.modernmanfitness.com/wp-content/themes/vesper/functions.php. You would can use the editor in the WordPress admin page, or use your own text editor to make the change. Simply copy and past the code that esmi gave to you, replacing the 100 in the line return 100; with the number of words you want in your excerpts.

    Check out these pages for more details:

    the_excerpt
    excerpt_length

    Your response is a little ambiguous… Are you saying that you don’t know how to replace the image with your own image, or are you saying that you don’t know how to create your own logo image to use in the first place?

    While looking at your site now, the Logo element is showing as white, I don’t see any of the changes that you mentioned in the custom stylesheet… This is the extent of the content in the custom stylesheet:

    /*changes color of the content box*/
    .custom #content {Background-color:#ffffff;}
    
    /*changes background image*/
    .custom {background-color:#000000;}
    
    /*changes tabs*/
    .custom ul#tabs .home-item a { color: #000000; }
    .custom ul#tabs .page-item-1 a { color: #000000; }
    .custom ul#tabs .page-item-2 a { color: #000000; }
    
    .custom #sidebar_1 {background:#E3F0F2 padding: 0px 5px}

    What browser are you using to test in? Are you editing through the WordPress admin panel, or are you using your own Text Editor and re-uploading the files? Or is there a special interface that the theme itself sets up for you?

    Don’t use the .custom before #logo a. The element doesn’t have the “custom” class applied to it, so it won’t recognize a .custom style.

    I see why that wouldn’t work… I identified the wrong piece of code that needs changed. Try this instead:

    #logo a {
       color: #fff;
    }

    Because it’s a link, if you want it to adjust the behavior of the link, you’ll also need to set the style of the pseudo classes. The most simple example would be if you want all of them to be the same no matter what, in which case you could do this:

    #logo a,
    #logo a:link,
    #logo a:visited,
    #logo a:hover,
    #logo a:active {
       color: #fff;
    }

    Here’s the code for that element:

    <h1 id="tagline">Arthur Lozinski's Personal Blog</h1>

    So you have some options….. You can either edit the element in your theme template to the following:

    <h1 id="tagline" class="custom">Arthur Lozinski's Personal Blog</h1>

    OR

    Make this addition to your CSS file:

    #tagline {
       color: #fff;
    }

    Technically, you could hard-code the content in HTML, but that would pretty much defeat the purpose of WordPress, wouldn’t it?

    A better option would be to make a WordPress page, and then set up your file as a custom template specifically for that page. The key ingredients are the template tag at the top of the page and the Loop. So, a very simple custom page template might look like this:

    <?php
    /* Template Name: Custom template
     */
    
    get_header(); ?>
    <div id="content">
    <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
    <!-- your formatting of the post content goes here, perhaps something like this: -->
    <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
       <h1 class="entry-title"><?php the_title(); ?></h1>
       <div class="entry-content">
          <?php the_content(); ?>
       </div><!-- .entry-content -->
    </div><!-- #post-## -->
    <?php endwhile; ?>
    </div><!-- #content -->
    <?php get_sidebar; /* (if you have a sidebar) */ ?>
    <?php get_footer; ?>

    When you are editing the page in your admin panel, there is an option on the right side to select the template that you are going to use for that page. That is where you would want to select “Custom template”.

    A few other things of note…. While technically you can write your header and footer however you want, a good practice is to contain all the opening code in your header, and all the closing code in the footer, rather than manually coding them in each template file.

    Some good resources:
    The_Loop
    Theme_Development
    Templates

    Most likely the element doesn’t have the class “custom”, so your CSS definition won’t be applied to it. You would need to add this class to that element, or use a different method of applying styling to the blog name.

    For questions that are specific to your site, it is best to post a link to your site so that it can be examined directly.

    In your page editor in the WordPress Admin section, set the page to use a custom page template (aka your page2.php). Doing it that way means that you don’t have to try to write redirects for WordPress, which by design handles URLs differently than a normal server file system.

    For more information, see Pages.

    No problem! Glad that I could help.

    There is a WordPress app for the iPhone, but I’m not sure whether it will do video or not. It definitely does images in posts. I have an iPhone 3G, but not the 3GS, so I can’t currently test with video.

Viewing 15 replies - 196 through 210 (of 268 total)