• scottish2

    (@scottish2)


    Hi

    I have a couple of questions I’ll list then below by number.

    Before I begin I am using the Theme Excellent – Version: 1.0.6 By Theme Freesia

    The link given will be for question 3 & 4!

    1. Is there a way by either setting or plug in to limit my posts only to specified category. Basically I don’t want to clutter up the front page with all the items in the catalog I basically just want a short welcome message and then if a user clicks on Shop or some other item in the menu it will then take them to the specified category to shop say for example Bird Feeders. But this way all the categorized items are shown only on their own pages and not on the home page.

    2. Is there a plug in or widget or something that I can put in the side bar (right) for featured products that way if the builder has some specific materials in stock he can put up a suggested product with a thumb nail image rather then full size as don’t want to display a full size image in the right side bar.

    3. Here is the link again for the page in question.

    This screen shot will indicate better what I am trying to get rid of.

    Screenshot Here.

    See the red squares I added to indicate the location. Is there a way to get rid of these links as I see them scattered all over the page and it just clutters up the look of the page as no need to have links to the page I am already on.

    4. Lastly on this same page as number 3 (plus others to be added items pages like this site as we go) is there a way to add a divider bar between posts just to break up the item list and make it look a little cleaner if so where can the code for a divider bar be added or is there a setting to add such a divider bar between posts? I have tried a couple of suggested CSS codes but with no success adding in the divider link.

    Thanks
    Dave

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Moderator bcworkz

    (@bcworkz)

    In reverse order:
    4, 3. So you you’re a theme tweaker ?? Join the crowd! You’re going to want a child theme. Creating one is fairly straight forward, follow the examples. The only tricky part is the code to enqueue styles. You need to find out what the parent theme’s style handle is. If you have trouble finding it, I’ll try to find it for you, just let me know you tried and got no joy. It’s typically defined in functions.php where the theme calls wp_enqueue_style(). Themes vary in where this is done, but they all do so somewhere.

    Copy the theme templates you want to tweak to your child. Find the part that outputs the red category tags and remove it. Even if you don’t code, don’t be afraid to try things. Just keep a copy of last known good file to revert to if your effort fails.

    If you have trouble determining the right template, there are plugins that will report the templates used on any particular page.

    To insert a divider bar, you want to add a CSS rule that adds a bottom border to the overall post container. On your home page, and likely other post lists as well, something like

    article {
        border-bottom: 1px solid black;
    }

    Add to your child style.css. Adjust the spacing with padding-bottom and margin-bottom styles. Obviously you can change “black” to any color and set the 1px to any size. There are many styles besides solid. Dotted, dashed, etc. Search engines are your friend. “css bottom border style properties”

    2. There should be an image widget you can use for sidebars. When you specify the image to use, you can select which size to display.

    1. Yes! This involves some coding, but there are good examples to work from. Adjust the examples thoughtfully and you can get what you want without really knowing code. The key is to use the “pre_get_posts” action. Place the best fit example on your child functions.php. Again, keep a last known good copy and test any changes you make frequently so it’s clear the last edit is the cause of any problem.

    If you get stuck on anything, let us know and someone will try to help you out. Good luck, and most importantly, have fun ??

    • This reply was modified 6 years ago by bcworkz. Reason: typo
    Thread Starter scottish2

    (@scottish2)

    Thanks I work through these after lunch and respond back if I get stuck somewhere.

    And yeah just hate the links there just looks so gaudy!!!

    Thread Starter scottish2

    (@scottish2)

    Do have one question it says to make a folder now the parent theme is in this folder

    excellent.1.0.6/excellent

    So when I make the new folder do I need to make two folders or just one one folder?

    excellent-child

    Also perhaps I missed it but I did not see what folder it needed to be uploaded to is it uploaded to theme or themes/excellent.1.0.6 or themes/excellent.1.0.6/excellent

    Thread Starter scottish2

    (@scottish2)

    Got a little confused so I pulled up a video on this and this guy shared a plug in that helps you create a child theme took about 30 seconds at most to complete the new theme. Editing the new child theme is the next thing i will try and tackle HA HA

    Thread Starter scottish2

    (@scottish2)

    Think I found it poked around in the code in my HTML editor just so the screen was bigger and found a bit that had categories in a span tag removed that and tested and the link was going going to try and post several posts and see how it looks when more then one are there. Also got the divider line inserted!!

    • This reply was modified 6 years ago by scottish2.
    Thread Starter scottish2

    (@scottish2)

    Just quick update have posted several times now and the links are in fact gone. Divider bars also showing up now between the posts!

    I also used a plug in to hide the posts from the main page. the plug is is called

    WP Hide Post

    It just adds a check box list below the new post box and you just select boxes next to where you wish to hide the post so in this case I just check hide from home page and poof no post on the home page but does show up fine on the categories page and such!

    Thanks for the help!

    Moderator bcworkz

    (@bcworkz)

    You’re welcome! Sorry I missed your posts until now. Seeing as you worked it all out for yourself, it’s all for the best. I believe we learn better when working out our own solutions instead of being given the solution. It’s not the reason for my delay in responding, but it worked out ??

    Thread Starter scottish2

    (@scottish2)

    No problem and yeah sometimes just lost and need a direction to go in and your response gave me that direction then after watching a video on the same topic it just make it more clearer on how to proceed in the direction as I tend to learn better by watching others do it then I can repeat but reading sometimes leaves me scratching my head HA HA

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Limit posts to category page only’ is closed to new replies.