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

Display full-width pages
Published 6 May 2015

Display full-width pages

A common request on the Support Forum is for information on how to change the page width to full-width. Customizr is designed […]

Display a slider in the 404 and search pages
Published 11 September 2014

Display a slider in the 404 and search pages

Let’s say you have created a slider named “my-slider” and you want to display it in your 404 page or in your […]

Displaying the last post update’s date in the post metas
Published 12 January 2014

Displaying the last post update’s date in the post metas

This snippet replaces the default published date by the last post update’s date in your post metas. add_filter( ‘tc_date_meta’ , ‘display_the_update_date’); function […]

Customizr slider : centering your slides vertically in full width mode
Published 20 February 2014

Customizr slider : centering your slides vertically in full width mode

May 2014 update: Now added in the core code of Customizr since v3.1.11 When the sliders are displayed in full width, you […]

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