The Blog Market

  • Home
  • About
  • Resources Directory
  • Advertise With The Blog Market
  • Contact Us

How to Create Gold Foil Text Using Only CSS

November 16, 2015 by jennifer Leave a Comment

Since earlier this year, I’ve worked with several clients who wanted gold foil text, which I’m fully in support of. Like I mentioned in this post a couple weeks ago, adding texture to your blog or website design is a simple but effective way to make it stand out. Normally when adding textured elements, particularly gold text, I use a clipping mask or type mask in Photoshop (view my past tutorials here and here). However, I recently discovered that you can add a background image to your text using CSS! Seriously life changing.

There are several reasons why I think this is amazing. First of all, you don’t have to upload images in place of text. Some fonts are fuzzier than others even when uploaded as a png and that can be really frustrating. Second, your site will be much more SEO friendly when you use text instead of images. Overall I think it just looks way cleaner than creating tiny text graphics in Photoshop. And it’s less time consuming which is also a plus.

How to Create Gold Text With CSS | The Blog Market

Alright! I’m going to teach you how to make a simple line of gold text with CSS, but you can use any background image, pattern, etc. (If you need a CSS refresher, read my intro to CSS post first). I’ll be sharing how to do this with WordPress, but other platforms are very similar. Also, keep in mind that this type of code doesn’t work for certain browsers like Internet Explorer so make sure you’re viewing this post in Chrome or Safari.

1. First, find a gold texture to use (or any image at all). The one I’m using was purchased from La Motte Design on Etsy. Upload your image to the media library of your website and keep the file URL handy.

How to Create Gold Text With CSS | The Blog Market

2. Create a paragraph using HTML and add it to your page or widget. Add a CSS class to this paragraph using the following format. We’re going to call our class gold-text.

<p class=”gold-text”>The Blog Market</p>

3. Next, go to your CSS Editor and copy & paste the following code but replace https://theblogmarket.co/gold-texture-image.png with the direct URL to your own image.

.gold-text {
    color:#c3a343;
    -webkit-text-fill-color: transparent;
    background: -webkit-linear-gradient(transparent, transparent),
    url(https://theblogmarket.co/gold-texture-image.png) repeat;
    background: -o-linear-gradient(transparent, transparent);
    -webkit-background-clip: text;
}

An alternative method is to use inline CSS, which looks like this:

<p style=”color:#c3a343; -webkit-text-fill-color: transparent; background: -webkit-linear-gradient(transparent, transparent), url(https://theblogmarket.co/gold-texture-image.png) repeat; background: -o-linear-gradient(transparent, transparent); -webkit-background-clip: text;”>YOUR TEXT HERE</p>

You can copy and paste the HTML code above into any page or widget. You can also see that I included a fallback color #c3a343, which will be a dark goldenrod. So if someone is visiting my site from Internet Explorer or another unsupported browser, they’ll still be able to see the text even if it’s not gold foil.

Here is what it looks like in action:

the blog market

Pretty, huh? Instead of using a gold texture, I’d love to try this with a marble or floral pattern. So many options.

Have fun with this tutorial and let me know if you have questions!

Leave a Comment

How to use Font Awesome Icons in WordPress

July 27, 2015 by jennifer Leave a Comment

Apparently, I’m really into writing font-related posts this month! Today I have another one for you involving a web and desktop font that consists of icons and icons only – Font Awesome. When you install Font Awesome, you can place the icons anywhere on your website using HTML and then style them with CSS. You can also download this font to your desktop and use it in applications like Photoshop and Illustrator. For now I’m going to focus on using them for your blog, particularly on the WordPress platform.

There are several different ways to use icons in web design, but Font Awesome is my tool of choice for a few reasons. First of all, it’s free! That is always a great deciding factor. Using Font Awesome is so much better than uploading tiny icon images because as a font, the icons will be scalable and never lose quality. Another reason to love Font Awesome is that the options for on for days.

Font Awesome Icon Tutorial for WordPress | The Blog Market

How to Install and Use Font Awesome on your WordPress Site

1. To use Font Awesome icons, you’ll need to add code to the <head> section of your theme. If you’re using a Genesis theme, go to Genesis >> Theme Settings in your Dashboard and you’ll find a place to add to the header. Otherwise, download the plugin Insert Headers and Footers then go to Settings >> Insert Headers and Footers in your Dashboard.

2. Copy and paste the following line of code into your <head> section:

<link rel=”stylesheet” href=”//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css”>

3. Now you can begin using all of the Font Awesome icons in your HTML using this format:

<i class=”fa fa-pinterest”></i>

Result:

So cute and tiny! Need to make it bigger? Try this code:

<i class=”fa fa-pinterest fa-lg”></i>

Result:

To view a complete organized list of the icons available, click here. And you can find more icon customization code snippets on this page. I prefer to customize Font Awesome icons using CSS, which works the same as any other CSS customization – just find the class and add some attributes.

Do you use Font Awesome or any other icon-based fonts? The creator of Font Awesome also made a line of icons called Black Tie and I love how clean and minimal it is. Check it out here!

Leave a Comment

CSS Basics: Borders

June 29, 2015 by jennifer Leave a Comment

Bringing back the CSS Basics series today to talk about a really awesome element of web design – borders! It sounds kinda boring and it can be boring, or it can make all of the difference in your designs. I feel like I am always learning new things about borders and it really all comes from experimenting. If you’re not too familiar with CSS, take a look at our Intro to CSS Guide!

Styling Borders with CSS | The Blog Market

Here are a few simple ways you can style borders:

border: 1px solid #000;

example

border: 2px dotted #4a8d7b;

example

border: 3px dashed #d0b237;

example

border: 5px double #ffae93;

example

When styling borders, you can code everything into one line or separate lines. Whatever makes you feel most organized.

Example of one line:

.class-name {
border: 1px solid #444;
}

Example of separate lines:

.class-name {
border-width: 1px;
border-style: solid;
border-color: #444;
}

Sometimes I like to add outlines to objects. An outline will go outside of the border, causing it to appear as if there are two borders instead of one. I use this when I want to create buttons that look like they have inset borders (see the main page of my site, Earl Grey Creative).

To create an effect like this, use the following codes, adjusting the class name, padding, color codes and pixel width as you’d like:

.class-name {
background: #d0b237;
padding: 20px 40px;
border: 1px solid #fff;
outline: 5px solid #d0b237;
}

It will end up looking like this:

BUTTON!

Does that all make sense? Let me know if you have any questions! If you want to make changes to your site but don’t want to bother with coding, get in touch! I’m available to make theme customizations at an hourly rate.

Leave a Comment

Quick Guide to HTML Entities

June 17, 2015 by jennifer Leave a Comment

A standard computer keyboard can only get you so far with its boring letters and numbers and select symbols. Just kidding, it’s probably all you really need. But sometimes it’s fun to add extra symbols here and there. I love customizing the arrows at the bottom of my posts or experimenting with different bullet point options. HTML Entities are characters that are reserved by HTML and may not necessarily be found on your keyboard. You might have learned about the symbols back in the late 90’s. If you were like me, you may have typed “&hearts;” after every sentence. Anyway, today I want to share the HTML entities I find most useful for blogging and web design!

HTML Entities Cheat Sheet | The Blog Market

HTML entities begin with an ampersand and end with a semi-colon. Between those marks, you can use several different words or combinations of numbers to create special entities like copyright symbols, hearts, arrows, or bullet points. To use these symbols, simply insert the codes (example: &hearts; for a heart symbol) into your designated HTML spot. No extra tags are required.

Useful
© &copy;
™ &trade;
® &reg;
¢ &cent;
£ &pound;
¥ &#165;
₣ &#8355;
€ &#128;
¼ &frac14;
❝ &#10077;
• &bull;
(space) &nbsp;

Arrows
← &larr;
→ &rarr;
↑ &uarr;
↓ &darr;
« &laquo;
» &raquo;
⇦ &#8678;
⇨ &#8680;
❮ &#10094;
❯ &#10095;
➝ &#10141;
➳ &#10163;
➵ &#10165;
⤷ &#10551;

Miscellaneous
♥ &hearts;
♠ &spades;
♦ &diams;
♣ &clubs;
❤ &#10084;
☀ &#9728;
☾ &#9790;
☁ &#9729;
☂ &#9730;
☎ &#9742;
☮ &#9774;
✂ &#9986;
✿ &#10047;
✎ &#9998;

There are several other HTML entities to choose from (sooo many arrows!) that I haven’t listed here. Character Code is my favorite resource for finding good ones.

More web design-related posts you might find interesting:

HTML Basics For Bloggers
Intro to CSS + Why You Should Use It
Three Ways to Style Links with CSS
How to Create Round Images using CSS

Any suggestions for future coding tutorials? Let me know!

Leave a Comment

How to Customize Jetpack Sharing Buttons in WordPress

May 14, 2015 by jennifer Leave a Comment

We recently added sharing buttons to the bottom of each post by using the Sharing widget that comes with the Jetpack by WordPress.com plugin. Jetpack gives us the ability to use features from WordPress.com in sites built from WordPress.org (for the rundown of WordPress.com vs. org, click here). WordPress.com is notorious for being very basic and limited. However, it actually has some pretty sweet features including a great stats system and of course, sharing buttons!

Customize Jetpack Sharing Buttons for WordPress

What I love about the sharing buttons is that they are so customizable. You know how some social media icons or buttons are just distracting? There’s like a big blue “F” for Facebook and a big red “P” for Pinterest and suddenly you’re like, whoa what happened to my cute, well-branded blog design? The Jetpack sharing buttons let you use simple links or even neutral-colored icons (see the bottom of this post to check out how we used them). I’m going to walk you through an example of how one might customize these buttons, but of course change up the fonts and colors to match your own unique theme. 🙂

Learn how to customize Jetpack Sharing Buttons in WordPress | The Blog Market

Here we go! You can install the sharing buttons by first installing Jetpack by WordPress.com. In your WordPress Dashboard, choose Jetpack > Settings. Find the “Sharing” section and activate those bad boys. You’ll be able to decide on a few details like which social media sites you want to include and how you want to format the links (icons? no icons?). Once you’ve made these decisions, you can go over to your CSS editor and add some codes to beautify your icons. You can copy and paste the CSS codes below (not the titles) and change the text I bolded to make it your own style.

Edits Title of Widget

div.sharedaddy h3.sd-title {
margin: 0 0 1em;
display: inline-block;
line-height: 1.2;
font-size: 11px;
font-weight: 400;
font-family: Trebuchet MS;
letter-spacing: 3px;
}

Controls Spacing Between Title & Buttons

.sd-content {
margin-top: 10px;
}

Removes Share Count (optional)

.sd-social .sd-button .share-count {
display: none;
}

Edits Actual Share Buttons

.sd-social-text .sd-content ul li a.sd-button {
text-decoration: none;
display: inline-block;
margin: 0 5px 5px 0;
font-size: 11px;
font-family: Trebuchet MS;
text-transform: uppercase;
letter-spacing: 3px;
font-weight: 400;
border-radius: 0; (change this to 50% for rounded edges)
color: #fff;
background: #C7B041;
border: 2px solid #C7B041;
box-shadow: none;
text-shadow: none;
line-height: 23px;
padding: 5px 10px;
}

Edits Hover State of Share Buttons

.sd-social-text .sd-content ul li a.sd-button:hover {
background: #fff;
border: 2px solid #C7B041;
}

.sd-social-text .sd-content ul li a.sd-button a:hover {
color: #fff;
}

Here is the result!

Learn how to customize Jetpack Sharing Buttons in WordPress | The Blog Market

Complete with hover effects:

Learn how to customize Jetpack Sharing Buttons in WordPress | The Blog Market

Note: These codes work best if they’re placed in the “Edit CSS” section under “Appearance” rather than “Editor”.

If you try out this tutorial, leave a link to your site! I love seeing how different people customize these things. Hope you’re all enjoying the week! 🙂

Leave a Comment

Three Ways to Style Links with CSS

April 9, 2015 by jennifer Leave a Comment

One of my favorite parts of designing blogs is experimenting with different ways of styling links. It totally changes the user experience. Some bloggers use CSS to change the color of links so that people know to click it. Others create full on blog graphics just by adding some coding to their links. I believe that even adding really subtle codes to links (and blog elements in general) can totally set one blog apart from another. Here are three of my favorite simple ways to style links. (For a CSS refresher, check out this post from a few months ago!)

3 Ways to Style Links with CSS | The Blog Market

1. Bold Underline

You can underline any link simply by adding “text-decoration: underline;” to the stylesheet. However, adding a border to the bottom of the links allows you to control the thickness and style of the underline. Here is an example of what the coding would look like followed by the styled link itself:

<span style=”border-bottom: 6px solid #518CE8;”>Bold Underline #1</span>

Bold Underline #1

<span style=”border-bottom:3px dashed #FFD2BB;”>Bold Underline #2</span>

Bold Underline #2


2. Button Style

I love styling links as buttons! It’s so cool to be able to create a blog link out of text and some codes (instead of just a Photoshop graphic). I explained it in-depth in this post, but using CSS to style links allows them to be cleaner, crisper, and easier to adjust on a whim. A lack of graphic images will also speed up your page loading time.

<span style=”border: 3px solid #282828; padding: 15px; text-transform: uppercase; letter-spacing: 3px; font-weight: 600; font-family: futura-pt;”>Button Link</span>

Button Link

<span style=”border: 2px dashed #FF9C69; background: #FFF7F3; padding: 15px; text-transform: uppercase; letter-spacing: 3px; font-weight: 600; font-family: futura-pt;”>Button Link</span>

Button Link

 

3. Simple Hover effects.

There are times when it’s good to just keep your links simple. For example, in the body text of your blog, your links can be the same font family and style as the rest of your body text. But a hover effect reminds people to click the links. That’s important. Rather than being redundant, I’m just going to send you over to this post all about how hover effects work. It’s way too much fun.

 

How do you like styling links on your site? I love subtly but I also am so happy when I come across bold link effects on blogs. Gotta get fancy sometimes. 🙂

Leave a Comment

  • Newer Posts
  • 1
  • 2
  • 3
  • 4
  • Older Posts

Recent Posts

  • Easy Ways to Add Greenery to Your Workspace
  • How to use Pinterest board sections to get organized + stay inspired
  • Friday Favorites 05 | Terrazzo Trend
  • Best Creative Planners for 2020
  • 10 Journal Prompts for Creative Motivation

Recent Comments

    © 2018 The Blog Market · · BACK TO THE TOP