• Resolved childrensfitness

    (@childrensfitness)


    I have a question about the Blue Horizons Word Press Theme. You can view it at:
    https://www.wpdemo.kaushalsheth.com/
    Does any of the experts out there know how I can take out the small verticle lines between the top links on the blue nav bar. For some reason, I don’t like them there, but cannot figure out how to remove them. You will see what I mean if you go to the link. Thanks for any help.

Viewing 15 replies - 46 through 60 (of 61 total)
  • neon

    (@neon)

    I’ll try my hand at it tonight and see if I get lucky. Will update.

    neon

    (@neon)

    P.S. childrensfitness, the index.php in question is the main index.php in the root WP directory, not the index.php in the theme directory. Going to take it for a spin later anyway.

    neon

    (@neon)

    Yep, works like a charm here… so far. Tested in the new mx4 theme.

    In the main index.php (WP root directory), place the following code:

    if(empty($_SERVER[‘QUERY_STRING’]) || (isset($_GET[‘feed’]) && !(isset($_GET[‘cat’]) || isset($_GET[‘category_name’])))) {
    $cat=’2, 3, 4′;
    }

    where 2, 3, 4, etc are the categories you need to INCLUDE, not exclude

    place the above code right before the following line:

    require(‘./wp-blog-header.php’);
    ?>

    edit: oops, it hides the posts alright, but i get error page when i go to the category where the unlisted posts are housed. Hmmm…

    edit 2: okay, something was buggy on my test WP installation, so I tested it on my main site (both the code and the mx4 theme) and it works. I think we’ve got a good solution here, childrensfitness, courtesy of Kafkaesqui. Good luck. ??

    edit 3: lol, this is gettting interesting. The hidden posts still show in the sidebar listing of “recent posts” when viewing other posts in single pages. Also, I never noticed originally, there is an additional header line above all posts on the main page. Back to quirking.

    Thread Starter childrensfitness

    (@childrensfitness)

    Neon, you are amazing, and so generous with your time on this project. Please keep me posted on what I should do. I hope you can solve this, because it is driving me crazy. I will check a little later for any post from you with directions. Thanks again.

    Edit:
    Neon, I just played with the script. It won’t let me post to the home page or index.php

    I hope you can figure it out. Thanks.

    neon

    (@neon)

    Got tied up with another pressing matter, childrensfitness, but here’s some food for thought in the mean time:

    1. Perhaps just create one category for posts you’ll exclude from the main page and just add

    $cat = “-1”;

    in the root’s index.php file before the last line. Substitute the “-1” for the excluded cat.

    OR

    2. Next is a plugin by Ryan Boren, aptly named Front Page Categories. I’m having some trouble getting it to work though. For now though, thought that maybe you’d try your hand at it too.

    neon

    (@neon)

    Sneaking in a few minutes here and there, lol

    Found this plugin. amazing that no one’s mentioned it.

    (it’s a revision of McDuffee’s category visibility plugin, updated for WP 2.01)

    here is a screencap of what it looks like

    Please back up your database before adding this one.

    edit: tested it a bit… seems to work quite well. let me know

    Thread Starter childrensfitness

    (@childrensfitness)

    Neon:
    If it worked for you, I am doing something wrong. I downloaded every plugin listed, then activated them. None of them worked. Most of them would not allow me to post simply on the home page. Others deleted catagories. Quick question before I go to bed….another night with no sleep over this!

    When you go to my site: https://www.lensaunders.com/wp

    The catogory ‘Children’s Health / Fitness Articles’ seems to be the ‘default’ catogory. Is that important to know? This is getting crazy. Why can’t this get fixed!!!!!!!

    I’ll check back here in the AM Good night.

    neon

    (@neon)

    childrensfitness, that last plugin worked perfectly for me, so forget about the rest. It removes posts from the unchecked/unselected in “manage > Category Visibility” categories from the main page, but you can still see those posts by clicking on the actual categories. Make sure your main (root) index.php file is writeable (chmod 644). I don’t understand what you mean by “won’t allow me to post simply on the main page”. I thought you were trying to hide posts from the main page.

    Thread Starter childrensfitness

    (@childrensfitness)

    Neon:
    I still would like to put a welcome message on the main page(index.php) that does not appear on other pages. When I put the last plug in on my site, I could not get anything to appear on the index page at all. It simply is not working for me. Here is what I did on the manage page. Go to:
    https://www.montville.net/valleyview/neon.jpg
    I think I did it correctly. When I do what you said, it makes one catagory disappear completely, and all my posts disappear.

    Thread Starter childrensfitness

    (@childrensfitness)

    Neon:
    Check this out when you get back home. When you click on the link I provided in my previous posts, you will see a catagory called Children’s Health / Fitness. It is not even on the catagory list.

    Should I just start from scratch again?

    neon

    (@neon)

    Childrensfitness, all of a sudden, I am a bit confused at what you’re trying to do.

    Originally, I thought that you wanted to (at will) eliminate posts from certain categories from appearing on the main page, only appearing in their category pages. If that is the case, then that last plugin does the job.

    Now, it sounds like all you want on the main page is a welcome post and you want the rest of your blog to be read only on the respective category pages, not on the main page.

    If my last assumption is correct, and that is indeed what you were trying to achieve, then you could either create only one checked category for the previous plugin, or… it would have been a lot simpler to simply create a static front page.

    I have a feeling we’ve been trying to drive in the proverbial nail with a sledgehammer.

    P.S. If, as you last posted, one of your two categories is missing from the (admin panel, manage, categories) listing, then yes, something is wrong.

    Thread Starter childrensfitness

    (@childrensfitness)

    You are correct about what I want to do. I really don’t want to bother you too much with this. Once I remove the plugin, the lost catogory returns. I can’t figure it out. I will read the static front page link you sent and will see if I can work it out.

    neon

    (@neon)

    While you’re studying that static front page plugin, you may glean a few additional hints/tweaks from here too. Also, it’s not a bother for me, childrensfitness. Two heads are always better than one, even when running around in circles, lol.

    Thread Starter childrensfitness

    (@childrensfitness)

    Okay, I am ready to pack it in. Did this plugin, and now nothing works. I can’t even post to any page. Is it possible my WP is corrupt now since I have been f—in with it to much?

    SCREAM……………

    Should I just send you my password to see if you can clean it up?

    neon

    (@neon)

    contacting you through your main site

Viewing 15 replies - 46 through 60 (of 61 total)
  • The topic ‘Blue Horizons Theme’ is closed to new replies.