Jump to content

Archived

This topic is now archived and is closed to further replies.

catrina

How To Add A Category Description To Your Category Pages!

Recommended Posts

batman    389
batman
Hi Catrina
Thank you very much for your excellent explanation ! !
I take note
wpml_mail.gif

Life is too short to remove USB safely ...

Share this post


Link to post
Share on other sites
jenbrea    0
jenbrea

This is absolutely fantastic. I thought finding a solution would be difficult, but this is perfect. Thank you!!

Share this post


Link to post
Share on other sites
mulryjohn    0
mulryjohn

Hi there,

 

I cannot seem to populate the description box at all in any of my categories. When I place the mouse to put the cursor in the text box it won't populate and it just flashes with a blue line at the bottom of the box. Uber frustrating. Do you know why this might be?

 

Thanks,

 

John.

Share this post


Link to post
Share on other sites
Rob    547
Rob

Hi.

 

It's probably a plugin conflict. Do you have many plugins? Particularly older ones? Deactivate all non-PageLines plugins and see if the issue resolves.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
mulryjohn    0
mulryjohn

Thanks guts got it working. In my category descriptions I got my silo builder set up but they are not showing. Have you to configure anything special in Pagelines for them to show?

Share this post


Link to post
Share on other sites
Rob    547
Rob

I don't know about 3rd party premium plugins.  The process should work provided you've added the description to the category in Dashboard > Posts > Categories under each category. Unfortunately, I can't support the 3rd party plugin or even analyze what it's doing.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
mulryjohn    0
mulryjohn

Ok thanks, I'll see if I can get it sorted

Share this post


Link to post
Share on other sites
Rob    547
Rob

Out of curiosity, does it work properly with the Silo Plugin deactivated?


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
rowin    0
rowin

Thanks a lot!! Good advice!   :)

 

Anyone know how to change the CSS as well for "category description", so the CSS is the same as a "post loop"?

 

I would like the same CSS (white block) for the text (category description). 

My website: http://www.internetmarketing-advies.nl/zoekmachine-optimalisatie/

 

Hopefully someone knows how to fix this? 

 

best regards,

rowin 

Share this post


Link to post
Share on other sites
James B    436
James B

Hi Rowin,

 

If you have firebug or chrome dev tools you can copy the css styles which are applied to the postloop and then apply them to the new title you've entered. #section.php .content-pad

 

Example of what's coloring the postloop currently - http://screencast.com/t/mSMQIcsi6CHi


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
rowin    0
rowin

Hi Rowin,

 

If you have firebug or chrome dev tools you can copy the css styles which are applied to the postloop and then apply them to the new title you've entered. #section.php .content-pad

 

Example of what's coloring the postloop currently - http://screencast.com/t/mSMQIcsi6CHi

 

Hi James,

 

thanks for your answer. Sorry for my late reaction... I was busy, so hopefully you can help me out.

 

In the custom CSS I paste the following code:

 

 

section#content-pad {
padding: 20px;
margin-top: -14px;
margin-right: 0px;
background: rgba(255,255,255,0.85);
border-radius: 0.8em;
border-style: solid;
border-width: 1px;
border-color: blue;
box-shadow: 1px 2px 4px 0px rgba(0,0,0,0.7), inset 1px 1px 4px 0px rgba(0,0,0,0.7);
}
 
There is no changing.... Is the above CSS wrong?
I also tried:
 
#section.php .content-pad {
padding: 20px;
margin-top: -14px;
margin-right: 0px;
background: rgba(255,255,255,0.85);
border-radius: 0.8em;
border-style: solid;
border-width: 1px;
border-color: blue;
box-shadow: 1px 2px 4px 0px rgba(0,0,0,0.7), inset 1px 1px 4px 0px rgba(0,0,0,0.7);
}
 
 
 
 
Thanks a lot... 
 
Rowin.

Share this post


Link to post
Share on other sites
rowin    0
rowin

And I use the plugin Shortcode Exec PHP for show up the description of my category's....

So I think It's somewhere in the css of this plugin, but I'm not shore??? Hopefully somebody can help me out!

 

If there is another option to show up the description of the category (and with the CSS of the postloop) this is also allright?!?

Share this post


Link to post
Share on other sites
James B    436
James B

Hi there,

 

To color the background of that section, you'll need to target the p element of the #section.php. This will give you the following effect - http://screencast.com/t/r8FnnIbmk6zA

 

The only other option I can think of to include the title would be using a hook to insert the text prior to the category posts.


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
Rob    547
Rob

Yeah, we think James B is a genius too!


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
rowin    0
rowin

Hi there,

 

To color the background of that section, you'll need to target the p element of the #section.php. This will give you the following effect - http://screencast.com/t/r8FnnIbmk6zA

 

The only other option I can think of to include the title would be using a hook to insert the text prior to the category posts.

 

Hi James,

 

Thanks for your support. Looks good! How does this works exactly? Which (exactly) custom CSS I have to use and can I put this at "Custom CSS" at "sitesettings" ?

 

Thanks a lot!

Share this post


Link to post
Share on other sites
bigtopmultimedia    2
bigtopmultimedia

If you are using a child theme, you can do the following to add the category description below the title:

 

1. Copy the postsinfo folder from /pagelines/sections/ into your /child-theme/sections/ folder

2. Around line 29 of /child-theme/sections/postsinfo/section.php you will see something like:

elseif( is_category() ):
	printf( '%s <strong>"%s"</strong>', __( 'Currently viewing the category:', 'pagelines' ), single_cat_title( false, false ) );

3. Change this to:

elseif( is_category() ):
	printf( '%s <strong>"%s"</strong>', __( 'Currently viewing the category:', 'pagelines' ), single_cat_title( false, false ) );
	printf( '<div class="cat-desc">%s</div>', category_description() );

The description will be wrapped in a div with the class "cat-desc" for CSS purposes

  • Like 2

Share this post


Link to post
Share on other sites
rpacker    19
rpacker

I am using Pagelines Framework and would like to add a category description, but I am unable to access any of the sections in the Pagelines store, including ContentBox. Is there another way to do this? Does the Pagelines store still exist for Framework?


Randall Packer

Multimedia Artist & Educator

http://www.randallpacker.com

Share this post


Link to post
Share on other sites
Guest   
Guest

PageLines Framework store is no more. Everything but DMS 2 is all but abandoned.

Share this post


Link to post
Share on other sites
rpacker    19
rpacker

Thanks for the response, albeit a bit doomed. I ended up using a Universal Sidebar in the category template with a category description widget, but am wondering if there is a solution that is more native to Pagelines Framework, for those of us still out there who have not yet taken the plunge into DMS.


Randall Packer

Multimedia Artist & Educator

http://www.randallpacker.com

Share this post


Link to post
Share on other sites
James B    436
James B

Hi, you can get all the free plugins which used to come with the Framework via the store from here - https://www.dropbox.com/sh/lhk62j37b5u92pe/Y_ijRkkq-Q

  • Like 1

Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
rpacker    19
rpacker

Thanks for the link. Question: are they any installation instructions and documentation?


Randall Packer

Multimedia Artist & Educator

http://www.randallpacker.com

Share this post


Link to post
Share on other sites
batman    389
batman

Hi rpacker

Please, you can take a look to this

http://support.pagelines.me/docs/

By the way, you can find more information at forum with the "search..."

;)


Life is too short to remove USB safely ...

Share this post


Link to post
Share on other sites
rpacker    19
rpacker

These docs don't contain information about the current status of the Store, which is no longer functional. I just wanted help with the installation of the sections that I just had to download *separately* from the Store.

 

Thanks.


Randall Packer

Multimedia Artist & Educator

http://www.randallpacker.com

Share this post


Link to post
Share on other sites

  • 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
    • Queue-it
      By Queue-it+
      Hi,
      Previous webmaster has made short codes assigned to certain categories. For example: [pl_section section="loops" id="003"]  displays all the Job posts for tech. 
      But where can I assign a short code for a certain category? I can't find where to add the loop ID for the category.
       
      Thank you
       
    • Queue-it
      By Queue-it+
      I've created a new post category "Success stories" with Custom Post type UI. (in order to have a different layout for a different post category - blog post one layout, success stories another layout).
      New category "success stories" are "detached" from all the other posts, so they have a different layout, but the problem is that all of the success stories are also having the same exact content.
      So whenever I edit content (e.g. change body text) on one of success story posts, it also changes the content (body text) for all other Success story category posts. 
       
      Question: Is there a way to retain this separate category with it's own layout, and have a different content for each individual post? I'm using Pagelins templates. 
       Thanks in advance.
    • Queue-it
      By Queue-it+
      Hi,
      Is is possible to have different layouts for different Post categories? We have Blog posts, News posts and Case studies that all are posts, but is it possible to differentiate their layouts?
      So far when I change a post layout it affects all Post type pages. Could it be done somehow with creating a separate template? 
      Examples below
      https://queue-it.com/news/
      https://queue-it.com/blog/
       
    • 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é
×