• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Code for a box

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Code for a box

This topic is: not resolved

Tagged: Code for a box

  • This topic has 14 replies, 2 voices, and was last updated 7 years, 2 months ago by Victor Font.
Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • March 9, 2018 at 12:59 pm #217612
    milada
    Member

    Hi,

    can anyone suggest a code for a text box - inside a random colour and the inside text in italics.
    Thanks!

    MIlada

    http://moreyouthfulskin.com
    March 9, 2018 at 3:22 pm #217627
    Victor Font
    Moderator

    Try this: https://www.studiopress.com/colored-content-boxes-buttons/


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    March 20, 2018 at 9:35 am #218136
    milada
    Member

    Thanks for the link.

    I used this code, which I copied to style.css:

    /* Content Box
    ------------------------------------------------------------ */

    .content-box-purple {
    margin: 0 0 25px;
    overflow: hidden;
    padding: 20px;
    }

    .content-box-purple {
    background-color: #e2e2f9;
    border: 1px solid #bebde9;
    }

    + the code <div class="content-box-blue">text</div> that I copied to the post

    However, it does not show the box.
    What is wrong?

    Milada

    March 20, 2018 at 10:26 am #218139
    Victor Font
    Moderator

    You copied the CSS for the content-box-purple, but you used content-box-blue in your post. They are two completely different things.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    March 20, 2018 at 10:30 am #218143
    milada
    Member

    Oh no, this was an omission, in the post there is this:

    <div class="content-box-purple">…Historie tohoto způsobu úpravy nehtů sahá do doby před čtyřmi stoletími, kdy si ženy šlechticů leštily nehty, aby se leskly jako vzácné perly…

    Tento typ manikúry převzal název P-Shine, po názvu firmy, která v roce 1958 začala v Tokiu vyrábět leštící výrobky na nehty. I proto její druhý název, „japonská manikúra“, odkazuje na dlouholetou tradici, která vzešla z této země.</div>

    but the box still does not show...

    March 20, 2018 at 10:39 am #218146
    Victor Font
    Moderator

    Post a link please.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    March 20, 2018 at 10:52 am #218148
    milada
    Member

    https://moreyouthfulskin.com/cs/p-shine/

    March 20, 2018 at 10:54 am #218149
    milada
    Member

    Here is the link again: https://moreyouthfulskin.com/cs/p-shine/

    March 21, 2018 at 4:40 am #218182
    Victor Font
    Moderator

    I can tell from your source code that something is rewriting your box HTML code. Every word in the div tag is wrapped in a span tag with classes like pl-ent, pl-en, pl-s, pl-pd. You may have a plugin conflict, but I can't tell from the front end. Whatever is doing this, it's also changing the HTML brackets into html entity codes.

    You can see this yourself if you right click in the content area and view the page's source code. When the source code page is open, search for the word purple and you'll see what I mean.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    March 21, 2018 at 6:50 am #218191
    milada
    Member

    Thank you for having tested it. It is kind.
    Is it ok that I added this code

    /* Content Box
    ------------------------------------------------------------ */

    .content-box-purple {
    margin: 0 0 25px;
    overflow: hidden;
    padding: 20px;
    }

    .content-box-purple {
    background-color: #e2e2f9;
    border: 1px solid #bebde9;
    }

    to the style.css file?

    Milada

    March 21, 2018 at 12:12 pm #218214
    Victor Font
    Moderator

    That code belongs in style.css. That's not what's creating your problem. Your HTML in post is wrong or it's being corrupted by a plugin. You have to do the troubleshooting yourself or hire someone to help you. This isn't something we can help with from the front-end of your site.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    March 22, 2018 at 7:05 am #218236
    milada
    Member

    I have tested the issue with all the plugins deactivated, but the issue persists. So it is not probably caused by the plugin intervention.

    March 22, 2018 at 7:32 am #218240
    Victor Font
    Moderator

    Then you have to hire someone to help you. This isn't something we can help you with without access to the admin area and server.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    March 22, 2018 at 7:52 am #218241
    milada
    Member

    I never said I wanted you to solve the issue for me.
    I just asked you about this problem with respect to the code, as I think there is something wrong with the code.
    What I thank you for is that you provided the link to the code.

    March 23, 2018 at 8:42 am #218279
    Victor Font
    Moderator

    If you originally added the HTML through the visual editor instead of the code editor, this would explain why the HTML was corrupted. This is the way WordPress works. You always have to use the code editor (Text tab) when adding HTML.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

  • Author
    Posts
Viewing 15 posts - 1 through 15 (of 15 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble