Jump to content
Sign in to follow this  
mason

Changing Font Type In Categories and Sidebar

Recommended Posts

mason    0
mason

Hey,

 

I was wondering how I could change the font type of my "Categories" list in the sidebar. 

 

For example right now my sidebar font is showing as Helvetica because under Site Settings > Typography > Text Headers, I have Helvetic chosen. But I would like to use the Google Font "Permanent Marker".

 

Firebug shows that my Categories are grabbing the font type from h3, but since Typography changes all headers at once I do not know how to customize this.

 

Please help!

 

Thank you.

Share this post


Link to post
Share on other sites
mason    0
mason

To be clear I would like to know how to change the font types of both the word "Categories" in the sidebar, as well as the font types of the links listed below such as "Art".

Share this post


Link to post
Share on other sites
greenfly    230
greenfly

Could we have a link to your site please?


The answer to many issues can be found by searching in the forum before posting as someone else  may very well have had the same problem before you have.  Also, reading the documentation can help you gain a good understanding of how everything works. 

 

Please do not send me private messages. Occam's razor - The principle states "Keep things simple!"

Share this post


Link to post
Share on other sites
James B    436
James B

Hi there, if you want to use google fonts for certain text areas on your site we have a free google font plugin you can install which will add all the fonts to your site so you can select them from the typography menu.

 

http://www.pagelines.com/store/plugins/pagelines-googlefonts/

 

If you're just looking to change the font for certain words or areas on the site you will need to use custom code. Make sure you have the google font plugin installed first and active, then you'll need to inspect the area in firebug and get the code where the font is being applied, then you can edit in your chosen font and paste into Pagelines>site options>custom code. An example is below.

 

 

.hentry .entry-title {
    font-family: butcherman;
    margin: 0;
}
 

Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
mason    0
mason

Hey, I have been trying this in several different ways but I cannot figure it out.

 

I do not know which section or div container to attach the code to.

 

My "Categories" are under:

<div id="sidebar-wrap" class="">
<div id="sidebar1" class="scolumn">
<div class="scolumn-pad">

<section id="sb_primary" class="copy clone_1 section-sb_primary"><div class="copy-pad"><ul id="list_sb_primary" class="sidebar_widgets fix"><li id="categories-2" class="widget_categories widget fix"><div class="widget-pad"><h3 class="widget-title">Categories</h3> <ul>
<li class="cat-item cat-item-1"><a href="http://headstructure.com/category/art/" title="View all posts filed under Art">Art</a>

 

 

But I still don't know what I have to insert into custom code.
 
I am sorry but I am a total noob!

Share this post


Link to post
Share on other sites
James B    436
James B

Hi there, its looks like you're looking in the correct area in the html. Once you've inspected the element in the html you need to look at the css in the right hand window, thats where you can make the edits and then copy/paste back into pagelines.

 

I've recorded a short video to show you.

 

http://screencast.com/t/jcem9WrCxyB

 

To see our overview on finding and editing css check out http://support.pagelines.me/docs/customization/custom-css/


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
mason    0
mason

Wow thank you very much! That was incredibly helpful! 

But I still cannot get my code to work :/

 

Here is the code I am putting into the custom code: 

.widget 
.widget-title {
    font-family: Permanent Marker;
}

 

Do I have to put the "* G" next to the font name because it is a google font? I don't understand what I am doing wrong.

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

Every widget is given a unique class, which you can use to style particular widgets. If you view the HTML code you provided above, you can see the following:

 

https://gist.github.com/anonymous/001b9f2e2cd3c1174830

 

As you will notice, the categories widget has the following class:

 

widget_categories

 

You can use this to target that widget and that widget only, you can also see in the code above that the h3 has a class to:

 

widget-title

 

We can use these two classes, to target the categories widget and its title, by combining the two, which would look like this:

 

.widget_categories .widget-title

 

Now we need to get the correct integration code from Google Webfonts, which you can find here - http://www.google.com/fonts#UsePlace:use/Collection:Permanent+Marker

 

So now we have the classes to target the widget and the h3 title, as well as the correct code for the font family, all we need to do now is combined them.

 

This would look something like this:

 

https://gist.github.com/anonymous/eae27368d5d32e077372

 

The reason as to why I am using #site and more information on how to implement custom CSS, can be found here.

 

http://support.pagelines.me/docs/customization/custom-css/


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
mason    0
mason

Great! This worked. Thank you very much!

But I do want to add that I was only able to make it work after I pasted this Google Web Fonts code into my Custom Code "Header Scripts":

<link href='http://fonts.googleapis.com/css?family=Font+Name' rel='stylesheet' type='text/css'>

Is there a reason I needed to do this when I already had the Google Web Fonts plugin enabled?

Also, if I wanted to add this code for more than one section such as:

.widget_archive

How can I add these together instead of writing two separate lines of code?

Share this post


Link to post
Share on other sites
catrina    103
catrina

I'm not sure why this is - but at least it's working now!

 

Can you please clarify what you mean by adding that piece of code for more than one section?


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
mason    0
mason

Yes me too!

 

And what I mean is I am able to change the fonts for each individual section, for example:

  • "Categories" title in the sidebar
#site .widget_categories .widget-title
  • "Archives" title in the sidebar
#site .widget_archive .widget-title
  • Links of different categories
#site .cat-item

 

I was just wondering if there was a way to change the fonts for all of these sections at once. Do I separate with commas in their hierarchal order, or do I put them all in one bracket?

Share this post


Link to post
Share on other sites
James B    436
James B

Hi there, if you want to change all of the widget titles to that font you can just use the .widget title class, as each standard wordpress widget will use this.

 

If you want to target certain areas and make the change only once then you can put in the classes separated with a comma followed by the font-family command as you've described above, that will work.


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
mason    0
mason

Great. Thank you very much for all of your help!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Similar Content

    • Anthony CALCI
      By Anthony CALCI+
      Hello,
      I have switched from the Framwork theme to DMS theme on http://calcipatrimoine.theproofingcompany.fr (miror site of http://calci-patrimoine.com).
      But I have now only the Primary sidebar in the Widget section ! Secondary sidear, Footer sidebar have all disapear...
      Can I have help to have them back ?
      Regards,
      Anthony
    • Barnaby Skinner
      By Barnaby Skinner+
      Hey all, hope I worded the topic correctly!
      I just need to know if either 1) I'm making a mistake or 2) this could be set as a new feature?
      Using the global settings typography parameters, I have a global paragraph font type (set using googlefonts) and have set the style to align:justify. When laying out <p> text inside a simple TEXT module, the <p> text adheres to both the font type and justification. Perfect.
      Now, when I set <p> text inside the PARAGRAPH TEXT field within an ELEMENT module, the <p> text adheres to the font type, but not the justification. It's rather annoying as I like to fully justify para text across the board and tend to use Element modules instead of text boxes for various reasons. It also seems silly that some PARAGRAPH TEXT fields adopt global settings, whilst other don't.
      Or I'm doing it wrong :S
      Any help or advice is much appreciated!
      Cheers
    • Michael Kummer
      By Michael Kummer+
      Hi guys,
      every since Chrome introduce scroll anchoring (see chrome://flags) blog posts on my page start scroll automatically as soon as the user scrolls down a bit. It is super annoying and I don't know exactly what triggers the incompatibility with Chrome's latest feature that is supposed to improve usability.
      Since I don't know what causes it (Pagelines, or a Plugin), I would like to disable the feature using a CSS override that Google describes as follow:
      "Scroll anchoring aims to be the default mode of behavior when launched, so that users benefit from it even on legacy content. A CSS property overflow-anchor can disable scroll anchoring in part or all of a webpage (opt out), or exclude portions of the DOM from the anchor node selection algorithm. This property supports the following values when applied to an element E:
      overflow-anchor: auto (the default value) declares that the DOM subtree rooted at E is eligible to participate in the anchor node selection algorithm for any scrolling box created by E or an ancestor of E. overflow-anchor: none declares that the DOM subtree rooted at E is not eligible to participate in the anchor node selection algorithm for any scrolling box created by E or an ancestor of E." Do you guys happen to know how to use that property with the ROOT element so it applies to the whole page?
      Thanks
      Michael 
    • wyo22ski
      By wyo22ski+
      Hello,
       
      I'm basically a designer and understand a little on how to change CSS, etc., so please excuse my ignorance...  I recently upgraded to the newest platform from the DMS and my old DMS theme no longer functions.  I'm trying to replace the image slider that my Horizon Photography Theme (Nick Haskins) had created.  The Impulse image slider seemed the closest to what I need, but there are problems.
      It seems the the Impulse section for sliding images defaults to the image width, no the height.  I can change the Impulse stage height and width, but this does nothing to the internal content.  For instance, if I change the height to 200 pixels, the image remains the full width and only shows a cropped section.  I would like the ability to change the Impulse height, and have the image height fit space. 
      I've put this custom CSS in, but again, this only controls the stage height of Impulse:
      .pl-sn-impulse .pl-impulse-cell .cell-wrap, .pl-impulse-container, .owl-stage-outer {
        width: 100%;
      }
       
      Any suggestions welcome.  Thanks 
    • Objectif-Mariage
      By Objectif-Mariage+
      Hello. 
      I have just realized that CSS (Less plugin) , is not working..... I have disable all plugins (except PL CUSTOM LESS and PL5) , and ... it's not working ... 
      It's not the first time. Usually I had trouble with a plugin name Autoptimize , but it's Desactivate now , all memory have been purge, and it's still not working! :-/ So it's not from this plugin. 
      NB : When I am logged on my website, if i go on the black wordpress dashboard bar, go on the PL icon, clic on </> LESS/CSS => then the page suddenly apply the CSS .... But As soon that i reload the page, nothing. I think the problem is that the plugin LESS/CSS does not load properly (if I can say that with my simples words).
      I order to keep the site "good looking" I have temporally copy/paste all my LESS code in a plugin : Script n Styles that apply the LESS/CSS code... but it's not a solution for long time.
      Can someone help me ? Did I do something wrong ? Is it an update ? 
       
      my website : https://www.wedding-photography-minneapolis.com
×