Add description to publication category

Viewing 14 posts - 1 through 14 (of 14 total)
#146242

Joe Geoffrey
Participant

Hello,

How do I add a text description at the top on the category archive page?

#146281

Nayeem Riddhi
Moderator

Are you talking about this option as I image attached,

Image 2021-02-08 at 9.52.07 PM

please let me know

thanks

#146303

Joe Geoffrey
Participant

I got help by adding the code below to the class.Package.php file;

the_archive_description( ‘<div class=”taxonomy-description”>’, ‘</div>’ );

Thank you !!!

#146645

Nayeem Riddhi
Moderator

Glad to hear this your problem has been resolved

thanks

#151761

Oliver Pust
Participant

Hi Joe,

How and where did you add it? I tried several locations and only get error messages.

Best regards,
Oliver

#151767

Joe Geoffrey
Participant

Oliver,

My apologies for the wrong update. Please open the toolbar.php file in download-manager/tpls/shortcodes/toolbar.php.

Add this code to the_archive_description( '<div class="taxonomy-description">', '</div>' ); to the toolbar.php file right above the //Show toolbar on post type archive comment.

Hoping this makes sense and let me know when it works.

#151773

Oliver Pust
Participant

Hi Joe,

Thanks for the quick answer. However, in my files are no comments. Again, I tried unsuccessfully with a few locations: Here is the beginning of my file.

Best regards,
Oliver

<?php
/**
* Base: wpdmpro
* Developer: shahjada
* Team: W3 Eden
* Date: 6/6/20 09:48
*/
if(!defined(“ABSPATH”)) die();
list($sr, $ob, $od, $bt) = [6,2,2,2];
if(isset($tbgrid)){
list($sr, $ob, $od, $bt) = explode(“,”, $tbgrid);
}
if(is_post_type_archive()) $toolbar = 1;
if ($toolbar) {
?>
<form method=”get” class=”<?php if(isset($async) && (int)$async === 1) echo ‘__wpdm_submit_async’; ?>” data-container=”#content_<?php echo $scid; ?>” id=”sc_form_<?php echo $scid; ?>” style=”margin-bottom: 15px”>
<?php
if ($toolbar !== ‘skinny’ && $title !== ”) {

#151776

Joe Geoffrey
Participant

Paste this code the_archive_description( '<div class="taxonomy-description">', '</div>' ); between these two if statements below;

if(isset($tbgrid)){
    list($sr, $ob, $od, $bt) = explode(",", $tbgrid);
}

and

if(is_post_type_archive()) $toolbar = 1;

Your code should be looking like this below;

if(isset($tbgrid)){
    list($sr, $ob, $od, $bt) = explode(",", $tbgrid);
}

the_archive_description( '<div class="taxonomy-description">', '</div>' );

if(is_post_type_archive()) $toolbar = 1;
#151781

Oliver Pust
Participant

Thanks so much for guiding me, Joe! This works.

Do you happen to know how can I activate a slider on the category page like on my other pages? See https://www.hoyaoptics.eu/download-category/downloads

Best regards,
Oliver

#151786

Joe Geoffrey
Participant

Use this CSS class taxonomy-description to format the text.

To add a slider to the category page, add the slider embed code just right above this code the_archive_description( '<div class="taxonomy-description">', '</div>' which you added a little while ago.

So if the slider is Slider Revolution, the code embed code should look like this <?php add_revslider('category_slider'); ?> where category_slider is your slider alias, replace the slider alias with yours.

#151790

Oliver Pust
Participant

I use Smartsilder, and the code echo do_shortcode('[smartslider3 slider="2"]'); did the job. However, extra space is added below the menu, and consequently the slider covers the category description…

#151794

Joe Geoffrey
Participant

Just play around with the CSS file otherwise it’s easier to help if am provided with the website logins so that I can help better.

#151796

Oliver Pust
Participant

Just found out that I can set negative margins per slider in the Smartslider settings. That did the trick. Thanks again for your help and patience!

#151798

Joe Geoffrey
Participant

Awesome. You’re welcome!

Viewing 14 posts - 1 through 14 (of 14 total)

The topic ‘Add description to publication category’ is closed to new replies.