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

Change the Menu label
Published 26 February 2016

Change the Menu label

The Hamburger Menu or the 3-bar Menu of the Customizr theme has the default label ‘Menu’ next to it. To change the […]

adding-css-class-to-a-wordpress-menu-item
Published 4 October 2019

Adding css classes to the WordPress menu items

In WordPress, you can easily style your menu by adding css classes to each items and make use of it. Go to […]

Change the Navbar Colors/Font/Size
Published 14 October 2013

Change the Navbar Colors/Font/Size

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_button_in_customizr_slider
Published 17 January 2014

Adding a secondary button to the slider in pure javascript

This snippets will allow you to add another button in any slide like in the picture below.     This snippet has […]

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