Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6924941
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:43:35+00:00 2026-05-27T10:43:35+00:00

Thanks in advance. I’d like to have posts with different colored borders and headers.

  • 0

Thanks in advance.

I’d like to have posts with different colored borders and headers. It would be nice to choose a category of the post (red, blue, black, etc.) and have it change the class for that specific post.

If it were outside of dreamweaver, it would use classes.

So I could say:

<div class="red box">
<h3>Header</h3>
Content
</div>

Ideally this would work by having an option in the design view named ‘classes’ or ‘post styles’. I would choose ‘box’ and ‘red’, and the style would be changed. Is this possible?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T10:43:36+00:00Added an answer on May 27, 2026 at 10:43 am

    The method you use to get the effect you want will depend based on the theme you are using. Many theme authors will include the categories or tags from each theme as classes on the div that contains the post so if you tagged a post as “blue” or “boxed” the post div would come out classed the way you are hoping. Then all you need to do is write some css that creates the effect you like.

    .blue {
      background-color: blue;
    }
    

    If you are coding your own theme you can include the tags using this method (borrowed from an answer by Alchymyth here):

    <?php $tags = get_the_tags();
    if( $tags ) : ?>
      <p class="tags">
      <?php foreach( $tags as $tag ) { ?>
       <span class="<?php echo $tag->slug; ?>"><a href="<?php echo get_tag_link($tag->term_id); ?>"><?php echo $tag->name; ?></a></span>
      <?php } ?>
    </p>
    <?php endif; ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Thanks in advance...see below the code.. i have 2 models, category and product my
Thanks in advance. I would like a regular expression that removes anything that is
First hi and thanks in advance in ASP.NET : assume that i have a
I am using c# .net. Thanks in advance for any help. I have searched
Thanks in advance for your time. I have a deeply nested XML whose XSLT
Thanks in Advance.... Can any one knows, I have a requirement to perfrom OnclickListener
Thanks in advance. I have Installed WAMP Server on System 4(192.168.1.104). I can Connect
Thanks in advance. What i currently have is a filedialog box selecting a text
Thanks in advance for helping me out (for those who have time and are
Thanks in advance... I have a solution in vc++ and it is working fine.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.