Skip to content
Back Home
  • Customizr Pro
  • Hueman Pro
  • Nimble Page Builder
  • Blog
  • Search
Back Home
  • Customizr Pro
  • Hueman Pro
  • Nimble Page Builder
  • Blog
Home » Snippets » Adding content before and after the logo with CSS only
code snippets css Logo

Adding content before and after the logo with CSS only

by Nicolas|Published 23 October 2013

⚠️ Code snippets might not be compatible with the latest version of your theme. Always use a child theme to customize your theme, and test your code on a staging website before migrating to production.

You can search the user’s forum or ask the user community by opening a new thread in the Customizr theme forum. Before opening a new topic, you might want to follow the troubleshooting steps..

Howdy Customizr designr!

Here’s a quick tip to simply add content before and after your text logo with CSS only.

We use the CSS pseudo classes  ::before  and ::after  to do that.

Important: in this example double quotes are escaped with ‘\’ to use the code in the custom css section. You can remove these if you use this code in the style.css file of your child theme.

.site-title::before{
content:\"Custom Text\";
color:#000;
font-size: 20px;
}
.site-title::after{
content:\"Custom Text\";
color:#000;
font-size: 20px;
}

You can play with the css properties to add padding, margins, borders …etc

Hope this will be useful for you!

AUTHOR

Nicolas
Hi! I'm Nicolas (@presscustomizr), the lead developer of the Customizr Theme and the Hueman Theme. My team and I are working everyday to help you publish your WordPress content the best possible way. We love to do it!Thanks for visiting this website, feel free to drop us a line !
0 posts

You may also like

Hide the Slider  Controls
Published 18 October 2013

Hide the Slider Controls

Where to copy/paste this code? The simplest way is to use the Custom CSS section of the customizer option screen. If you […]

Change Grey Bar between Navbar and Slider
Published 15 October 2013

Change Grey Bar between Navbar and Slider

Where to copy/paste this code? The simplest way is to use the Custom CSS section of the customizer option screen. If you […]

Add a specific page or post content in another post or page
Published 2 August 2014

Add a specific page or post content in another post or page

Following this discussion in the Customizr theme support forum, here’s a simple piece of code that will allow you to add any […]

Adding a block of content below the header
Published 22 October 2013

Adding a block of content below the header

Howdy Customizr developer! A clean and simple solution to display a block of content right below the header is to add an […]

Impress your visitors with a perfect experience on smartphones

customizr-pro-screenshot

10K+ small businesses are already using the Customizr Pro WordPress theme for their online presence.

Discover Customizr Pro

Post navigation

  • Previous post Embedding a Youtube video the right way in Customizr
  • Back to post list
  • Next post Remove categories and tags buttons in the post metas block
Useful pages
  • Your account
  • Product Support
  • Documentation
  • WP code snippets for Customizr theme
  • Work with us
Company
  • About
  • Blog
  • Privacy Policy
  • Terms of sale
  • Contact Us
Products and Services
  • Customizr Pro
  • Hueman Pro
  • Customizr WordPress Theme
  • Hueman WordPress Theme
  • Nimble Builder

© 2021 Press Customizr – All rights reserved