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

Changing the social link’s titles displayed on mouse hover
Published 3 February 2014

Changing the social link’s titles displayed on mouse hover

Here’s a quick snippet to change the title attribute of the social links that’s displayed when the mouse moves over the link’s icon. By default, […]

Opening an external url in a pop-up window for a specific page
Published 26 September 2013

Opening an external url in a pop-up window for a specific page

To do that, you need : 1) The linked page ID (easy to find in the url when editing the page in […]

Move the featured pages block anywhere on front page
Published 30 October 2013

Move the featured pages block anywhere on front page

Howdy, Here’s a simple recipe to change the featured pages block position in Customizr, we two lines of code! Like for the slider […]

Adding a fourth footer widget area
Published 3 February 2014

Adding a fourth footer widget area

I showed you how to add a widget area after the header a few weeks ago. But what if you feel you don’t have enough widget areas in the footer? Read on…

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