Forum Replies Created

Viewing 15 replies - 31 through 45 (of 63 total)
  • Permalinks is the answer to your pretty URLs question. The admin section has some default options which look fine, or as Dave333 said, you can customize how they look.

    As for the pages and sub-pages, create a parent level page, then create a child page and set it’s parent to whatever is above it.

    Regarding the triple posts:
    Is your index.php loop setup to only display 1 post? Are there multiple loops all calling to the same category? Did you somehow limit/filter which posts your loop is showing?

    Regarding the footer:
    Hmm, maybe the theme’s creator encrypted footer.php? That’d be strange…

    If they did, you can easily remake it. Create a new footer.php that has 2 <div>‘s with CSS that is something to the effect of:

    #footer-wrapper { /* spans the entire width of the page */
       height: 108px;
       width: 100%;
       background-image url(https://clarklandscaping.biz/wp-content/themes/mahusay/images/background-footer.gif)
       background-repeat: repeat-x;
       background-position: top; /* might have to check this */
       background-color: #666666;
    }
    #footer-content { /* holds the textual info */
       width: 960px;
       height: 82px;
    }

    The short answer is because all content resides within the .Sheet <div> that is only 900px wide.

    Here’s your <div> hierarchy as it stands right now:

    .Main
       .Sheet
          .Sheet-body
             .Header
                [unidentified div with logo table]
             .nav
             .1
             .r
               [empty div]
          .contentLayout

    contentLayout is the first <div> in your nosidebars.php. There is too much other structural crap prior to this, which I’m assuming is coming from header.php. I’m also going to assume that the <div>‘s listed have the same CSS attributes as the other pages.

    I highly recommend restructuring this mess — it will make your life easier. Right now <div class=".Main"> is taking over the role of the <body> tag. I would leave that alone and create two #wrapper divs. One that is reduced content size, and one that is the width of the full page.

    At minimum, at least get rid of the empty <div>‘s and rename them to something more meaningful than “r” or “1”.

    I’m guessing you have a broken custom function somewhere, or you’re trying to pass some arguments that don’t exist or are invalid.

    global $post;
    foreach($var as $post) {
         //do stuff
    }

    If you want to remove the search from all pages, open page.php and check for instances of either

    <?php get_sidebar(); ?>

    or

    <?php include (TEMPLATEPATH . '/searchform.php'); ?>

    and either comment out or delete them.

    I’m assuming you’ve customized the WP admin section. Do you want to rollback jQuery, or do you want to rollback WP? Is this more involved then changing a <script> tag in your header?

    Your posts would lead me to believe that you haven’t actually read through the Codex, because it’s pretty straight forward, regardless of your knowledge of PHP. I am helping, but maybe you need to listen to what I’m saying and be more proactive?

    Trial and error.

    SimonJ – That’s a good point, you may very well be right. I’m not sure.

    [email protected] – Despite the fact that pages and posts are the same, if the comments are different I would think you would need 2 separate databases (at at minimum 2 installations with different table prefixes).

    You can have 2 installations of wordpress on the same server, and they can both pull content from the same database.

    yourdomain.com/wp1 --\
                          -- common db
    yourdomain.com/wp2 --/

    That’s my understanding, anyway.

    Calm down man…

    My knee-jerk reaction is that you only need 1 loop, since all 4 of those loops are doing the exact same thing. The Loop holds all of the post information you need, it’s just a matter of how you manipulate it. You may have to write a custom function or two that shortens the output. Check out the php function strlen() and the WP the_excerpt() tag. I’d give you a link to the Codex but…

    Case A:
    Are your 2 clients on 2 different domains, or the same? If you’re referring to just 1 domain I suppose you can have 1 database. If you mean there are 2 different domains, I would make an individual database for each.

    If the content is exactly the same, setup both wp-config.php files to connect to the same database (be extremely cautious doing this, however, because you may run into conflicting problems down the road). Then duplicate the current theme folder, rename it, make the necessary change(s), and apply it to the desired domain.

    Case B:
    Now, if you mean that there is just 1 domain with multiple users, and when a certain user logs in and sees a different logo, it’s just a simple php if...else situation.

    Bare-bones example:

    if ($user == 'company1') {
         echo '<img src="dog.jpg" />';
    } else if ($user == 'company2') {
         echo '<img src="cat.jpg" />';
    } else {
         echo '<img src="default.jpg" />';
    } //end if

    I’m afraid you’ll have to tell your client it can’t be done, unless you build your own blogging system with all necessary files in the root and all output is sent to blog.html.

    I don’t see anything wrong with having someone go to https://www.yourdomain.com/blog — it’s actually much easier to type, remember, more organized, and cleaner (and subsequent URLs will be equally as clean).

    Maybe you can re-create the contextual information in a new WP post/page, and then in your .htaccess file have some rules that automatically redirect all requests from /your_old_page.html to /your_new_permalink/.

    Sorry for that double post, the Forums were acting funky. I’ll keep looking into it.

    Hmm, interesting question. I also looked through some files and couldn’t find that <p> tag.

    The default Loop reads:

    <div class="entry">
         <?php the_content('Read the rest of this entry &raquo;'); ?>
    </div>

    Is there something special you need to do that can’t be done via CSS?

    .entry p {
         /* stuff */
    }
Viewing 15 replies - 31 through 45 (of 63 total)