The Blog Market

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

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

How to use Hex Color Codes

February 25, 2015 by jennifer Leave a Comment

Changing colors of web elements is usually one of the very first things learned in HTML and CSS. Maybe you are like me and first discovered hex codes while trying to beautify your Neopets shop (what up ’90s kids!). Over the years, the language of code has changed a lot but the process of choosing and changing colors has remained pretty consistent.

When changing colors in HTML and CSS, we use hexadecimal numbers – more commonly known as “hex color codes”. To be honest, I never think about what these color codes actually mean. I just use the color picker in Photoshop or I use the Inspect Element tool. Still, it’s neat to think about so here’s a brief rundown on how this whole color thing works.

How to use Hex Color Codes | The Blog Market

A hex code is made up of a hashtag followed by 6 digits (0-9, A-F). Together, the letters and numbers represent different combinations of red, green, and blue light (RGB). Zero represents the lack of color or light (#000000 would give you black) while the letter “F” represents the strength of a color or light (#FFFFFF would give you white). All of the numbers and letters in between “0” and “F” represent a spectrum of colors and can be combined to create beautiful custom shades. For a more extensive tutorial on how color codes technically work, click here.

When inserting colors into your CSS codes (click here for a CSS refresher), you definitely can just type the name of a common color. For example, adding “color: pink;” to your font selector would create text like this. However, I know that you probably want to be able to choose the exact hue for your test. Why not create something custom just for your blog or website? This is where some kind of color choosing tool comes in handy. For the most basic color picker, an excellent simple website is ColorPicker.com.

colors_01

Or you could just use the color picker in Photoshop!

colors_02

After you’ve chosen the perfect colors, you can copy and paste them into your CSS style sheet. Want to change your font color? Check out our tutorial on styling fonts with CSS.

For some other great ways to explore hex colors, check out our roundup of 5 color palette tools. Have fun!

Leave a Comment

CSS Basics: Margins & Padding

February 3, 2015 by jennifer Leave a Comment

Good morning and happy February!! Today I’m continuing the CSS Basics series with a little lesson on margins and padding. Spacing is a huge deal when it comes to creating a clean, user-friendly blog or web design. We already covered letter spacing and line height in the last CSS Basics post. Using the margin and padding attributes allows us to create space within and outside of larger web elements. If you need a refresher on how CSS works, check out the Intro to CSS post.

CSS Basics: Margin & Padding | The Blog Market

So, what’s the difference between the margin and padding of an element?

Margin refers to the extra space outside of an element.
Padding refers to the extra space within an element.

Here are some mockup examples of blog elements with and without margins and padding.

Example #1: Navigation Menu (Margins)

css-margins_01

Example #2: Sidebar Title with a Background Color (Padding)

CSS Basics: Margins & Padding | The Blog Market

It makes a crazy difference, huh? Okay now let’s do some coding! There are a couple of different ways to customize the margin and padding of your web elements. First, find your CSS id or class using the Inspect Element Tool. Then set up your CSS code to look something like this:

.nav-menu-item {
margin-top: 5px;
margin-right: 15px;
margin-bottom: 25px;
margin-left: 10px;
}

(Remember to replace “.nav-menu-item” with your specific element’s class)

The example above works just fine, but you can also speed up the process by including multiple properties on one line.

.nav-menu-item {
margin: 5px 15px 25px 10px;
}

The order is always clockwise so in the example above, margin-top is 5px, margin-right is 15px, margin-bottom is 25px, and margin-left is 10px.

If you’re creating a symmetrical margin setting, you can write your code in an even more simplified line such as this one:

.nav-menu-item {
margin: 5px 15px;
}

In the example above, margin-top and margin-bottom are 5px, and margin-right and margin-left are 15px.

The same exact rules apply when we’re changing the padding of an object.

These attributes are ones I consider when customizing every single element of any blog I design. I hope all of this info is clear and makes sense to you! Ask me any questions in the comments below. Hope you’re having a wonderful Tuesday!

Leave a Comment

CSS Basics: Styling Your Text

January 28, 2015 by jennifer Leave a Comment

I’m not usually one for super bold statements, but I’m gonna go all out and say that text is the most important part of a blog design. Have you ever visited a site with text that blends into the background so much that you have to tilt the screen of your laptop to read it? Not good. Having clean, readable text is key for the success of any blog. It’s also important to know how to fancy up your text a bit even if it’s just by making it bold or underlining it. This will help create a hierarchy, distinguishing your blog elements from one another (post titles, sidebar headings, etc).

css-style-text

Here are 12 CSS attributes (with examples) that will help you style the text of your blog:

1. font-size – size of text {font-size: 12px;}

2. font-family – typeface of text {font-family: helvetica, sans-serif;}

3. font-weight – heaviness of a font {font-weight: 500;}

4. font-style – style of a font {font-style: normal;}

5. text-align – alignment of text {text-align: center;}

6. text-indent – indentation of text {text-indent: 25px;}

7. text-transform – capitalization of text {text-transform: uppercase;}

8. text-decoration – decoration of text {text-decoration: underline;}

9. letter-spacing – spacing of letters {letter-spacing: 1px;}

10. line-height – line height in a paragraph {line-height: 1.5;}

11. color – change color of text {color: #000;}

12. background – change background color of text {background: #fff;}

Now that we have all of these definitions and codes, let’s see some examples of CSS in action. Suppose I want to change the body text of my blog. I would first find the class of the text (use the Inspect Element tool to find it easily) and then plug in whatever codes I wanted to style the text.

Example #1 – Styling the Body Font of a Blog

.entry-content {
font-family: Helvetica;
color: #303030;
font-size: 14px;
font-weight: 300;
letter-spacing: 1px; }

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla aliquam vitae libero in egestas. Sed lorem odio, luctus at luctus a, tincidunt ut elit. Morbi vitae aliquet mi, non rutrum felis. Interdum et malesuada fames ac ante ipsum primis in faucibus. Praesent ut odio lobortis, elementum magna at, molestie ipsum. Sed rhoncus sollicitudin urna a fermentum. Vestibulum ex nisi, efficitur at enim sit amet, faucibus hendrerit magna. Duis pharetra dui ac massa sodales viverra. Donec non massa eget nulla hendrerit fringilla. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Nullam ac dignissim leo.

Example #2 – Styling Sidebar Headings of a Blog

.widget-title {
font-family: Futura;
font-weight: 300;
text-transform: uppercase;
color: #ffffff;
background: #393939;
font-family: 16px;
letter-spacing: 2px;
width: 200px;
padding: 5px; }

 

sample sidebar heading

 

Styling your text with CSS doesn’t mean you have to go crazy with bright colors or hover effects (although they are fun).  But it’s still a great way to bring your blog design together in a way that looks intentional and professional.

As always, share any questions in the comments below and I’ll get back to you ASAP!

Leave a Comment

CSS Basics: Adding Hover Effects

January 19, 2015 by jennifer Leave a Comment

I believe that hover effects can make or break a website. They can add a touch of surprise, or they can drive your readers crazy. When used in a good way, they can make any website just a little bit more fun. I love when a header has a really subtle hover effect, like Jen’s header here. I also think it’s super important to utilize hover effects for your links. Otherwise, people might never find them in that sea of plain black text!

There are quite a few ways to use hover effects that are easy on the eyes. Let’s learn some CSS, shall we?

css-hover-effects

(If you’re brand new to CSS, it might be helpful to read this Intro to CSS post before moving forward.)

First, there are a few definitions to go over. The a selector in CSS signifies a hyperlink. It’s followed by a set of brackets with the attributes enclosed. Immediately after the a, we’re going to add :hover, which is called a pseudo class. This means that we’re styling the element in a special state (like when a cursor hovers over it). You can add :hover to any selector in CSS to change its hover effect, but today I’ll mainly be working with links and images.

1. Change Text Color

The CSS behind a regular styled link might look something like this:

a {
color:#000000;
}

To add a hover effect, you would also include this code in your stylesheet:

a:hover {
color:#ffddca;
}

hover here

 

2. Change Background Color

a:hover {
background:#b0994b;
}

hover here

 

3. Add Underline Effect

a:hover {
text-decoration:underline;
}

hover here

 
4. Change Cursor Style
a:hover {
cursor:default;
}

a:hover {
cursor:pointer;
}

a:hover {
cursor:crosshair;
}

hover here

 

5. Add a Border to an Element

div {
border:3px solid #393939;
}

(replace “div” with your class or id)

hover here

 

6. Change Image Opacity 

To add an opacity hover effect for just the single image below, I turned it into a class by adding class=”vintage-dress” to the HTML <img> tag. Then I went into my CSS editor and added the following code:

img.vintage-dress:hover {
opacity:0.5;
}

Remember that instead of using a:hover, you will use img.class-name:hover.

The Blog Market

There are so many other attributes you could use to change the hover state of any element. For more options, check out this handy CSS Cheat Sheet.

If you have any questions, feel free to ask them in the comments below!

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