Jump to content
stefanoferruggiara

Leave Section On Specific Category Page

Recommended Posts

stefanoferruggiara    5
stefanoferruggiara

Hi there,

i need help for made this thing:

leave the box section in a specific category page.. like only in this one:

http://www.aaabuyitaly.com/ru/category/commercial-real-estate/

 

i have to leave the node?

If yes.. how?

Other way?

 

Thanks for fast reply..

 

 

 


"Se c'è una sola possibilità.. lo faccio, se non c'è.. la creo!"

Coach Stefano Ferruggiara, Allenatore Fisico & Mentale

Share this post


Link to post
Share on other sites
catrina    103
catrina

I think the only way to keep a specific section on a specific category page would be to hide it on the other category pages (where you don't want it to appear) using CSS.

  • Like 1

Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
stefanoferruggiara    5
stefanoferruggiara

For sure.. i don't know how do it :)


"Se c'è una sola possibilità.. lo faccio, se non c'è.. la creo!"

Coach Stefano Ferruggiara, Allenatore Fisico & Mentale

Share this post


Link to post
Share on other sites
Rob    547
Rob

Stefano,

 

You're asking for miracles.  I'm going to have to pray for some divine inspiration.

 

You'll need three things:

1.  Widget-Logic plugin

2.  WP-Boxer plugin

3.  Special Recent Posts.

 

Start by activating all three.

 

Next, add a Universal or Full Width Sidebar where you want it on the category template. If it goes across the page, use the Full-Width Sidebar. If it's in the Content Area, use Universal.

 

Go to Dashboard > Appearance > Widgets and implement the shortcode for WP-Boxer in a Text Widget in the Sidebar you just added.

 

In the Text Widget, you'll see a field for Widget Logic.  Use the proper code for the category you want the widget to show in.

 

In Dashboard > Content Blocks, create the boxes (Content Blocks are the same as Boxes), and style them as you want them.

 

In each Content Block, add the Special Recent Posts shortcode that's needed to implement the content you want in each content block (box).

 

You may need to do some CSS to size images and style things.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
stefanoferruggiara    5
stefanoferruggiara

Sorry Rob.. but i think is more simple a css code specific for disable/hide the display of the box section in a specific post. I dont install 3 plugin for made one think that some developer here can resolve with a simple css code that i don't know yet.


"Se c'è una sola possibilità.. lo faccio, se non c'è.. la creo!"

Coach Stefano Ferruggiara, Allenatore Fisico & Mentale

Share this post


Link to post
Share on other sites
stefanoferruggiara    5
stefanoferruggiara

If some one can show me how can be .. i go search the id of every category page for apply and hide the section only in that specific category page and stop.


"Se c'è una sola possibilità.. lo faccio, se non c'è.. la creo!"

Coach Stefano Ferruggiara, Allenatore Fisico & Mentale

Share this post


Link to post
Share on other sites
stefanoferruggiara    5
stefanoferruggiara

OK.. maybe i found...

 

 
.category-111 #boxes {
  display: none;
}
  • Like 1

"Se c'è una sola possibilità.. lo faccio, se non c'è.. la creo!"

Coach Stefano Ferruggiara, Allenatore Fisico & Mentale

Share this post


Link to post
Share on other sites
catrina    103
catrina

The CSS code is going to need to be more specific. You should add body before .category-111 and #page after that:

body.category-111 #page

If that doesn't work, you'll need to keep working on it until you find the right selector.

  • Like 1

Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
stefanoferruggiara    5
stefanoferruggiara

Which is the difference wtih mine,  Catrina?? Mine work.. is wrong?


"Se c'è una sola possibilità.. lo faccio, se non c'è.. la creo!"

Coach Stefano Ferruggiara, Allenatore Fisico & Mentale

Share this post


Link to post
Share on other sites
Jenny    33
Jenny

If yours works, then by all means use it. :) Catrina was simply suggesting that to make sure your custom CSS overwrites any default CSS.

  • Like 1

Jenny :: Web designer at Simple Mama (follow me at @simplemamacom)

Check out Share Me, a social sharing add-on for DMS that is super simple to set up.

Share this post


Link to post
Share on other sites
stefanoferruggiara    5
stefanoferruggiara

Ok ... thanks;)


"Se c'è una sola possibilità.. lo faccio, se non c'è.. la creo!"

Coach Stefano Ferruggiara, Allenatore Fisico & Mentale

Share this post


Link to post
Share on other sites
Rob    547
Rob

Glad that worked Stefano!

  • Like 1

Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Similar Content

    • JP
      By JP+
      Hello,
      We are working on a 2 languages site (https://liguecardioliga.be) with wpml, and lately the call of a category in the loops section (and all the sections requiring a category to select posts) doesn't work in the translated language. It worked well until recently so I wonder if it's because of a recent update (wordpress, wpml, pagelines, a plugin?). Anyone has the same problem? a solution?
      TIA
    • mzhafzah
      By mzhafzah
      Hello
      I am using DMS 2 theme and I want to create a 2 different links on my website; each link should take you to a different blog post category. Although the process is easy, yet I can not figure out how to give each category page a unique design of its own; Any change I make on any page is applied to the other (I'm aware of the universal elements like the header and footer and I a am not talking about these.)
      Since I am new to wordpress in general, I am not sure if my description is sufficient; apologies if it is not.
      TycoonJé
    • morrisjohnc
      By morrisjohnc
      Hello,
       
      My blog has two separate types of post content, both of which need to be created as posts, not pages, in WP.
       
      On the category pages, Bespoke pulls the featured image and the 10 word excerpt (or whatever is provided for in the excerpts post field).  How can I get certain categories to show the full content of a post and others this standard format with the "read more" button?
       
      Question 2 - Is it possible to have different templates for different category listing pages?  Example, use the postloop for one category and the masonic gallery for another?
       
      Thank you in advance for your help!
    • aldisney
      By aldisney+
      Hi--
      I was wondering if there was a relatively easy to way automatically assign a thumbnail to a post category when displaying posts in the Masonic Gallery format, when the post doesn't have a featured image? I've got a client with a ton of posts that just won't have any featured images, but each category has a header image. I'd like to display the header image as the thumbnail for all these posts, since, going forward, my client does actually plan to use featured images.
       
      Thanks!
    • groves
      By groves
      Hi
      I had my box section/soap box altered by a developer. I now want to change these rules but sadly, the guy is no longer available.
      So what I'd like help on is advice on what CSS I need to input to change my default box/soapbox page to 3 columns, not 2 as it is now.
       
      http://www.insidemani.gr/stoupa/stoupa-accommodation/
       
      I tried changing these settings in the theme settings but that has not worked.
      What exactly should I add in terms of CSS?
       
      Many thanks
       
      Groves
×