ericcrooks
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Built in theme customizer not working in Storefront child theme.No problem, man, glad it helped!
Forum: Themes and Templates
In reply to: Built in theme customizer not working in Storefront child theme.Hey delidoodle,
All you needed to do to get the woocommerce.css file to load before your child theme’s style.css was to add this line of code to your child theme’s functions.php file:
add_filter( 'wp_enqueue_scripts', 'storefront_woocommerce_scripts', 1);One line of code beats the six you currently have. You don’t need to do the method that James Koster has posted (leaving the child theme’s style.css file empty and enqueueing a separate stylesheet for your child theme or use a custom css plugin/jetpack).
I’ve tested it and the customizer functions are still in tact. Let me know how it goes for you.
Also, if you need to add any custom CSS code, you can do so in your child theme’s style.css
Here’s the explanation of the code snippet:
The number “1” at the end of the code (above) is the priority number, meaning it has first priority to be executed (along with other default WordPress actions).
A theme’s stylesheet has a priority of 10 when it is loaded. This is the default setting WordPress have given themes. You can find it in the /wp-includes/default-filters.php file at around line 205.
Storefront, by default, gives its woocommerce.css file a priority of 20, which is after any parent theme’s style.css or child theme’s style.css. The snippet of code I’ve given you changes the priority of the woocommerce.css from 20 to 1, making it load before any other stylesheet.
Forum: Themes and Templates
In reply to: [Storefront] woocommerce.css overriding child theme style.cssthesloog,
From a stock setup of Storefront and a child theme, you only have to add this line to your child theme’s functions.php file:
add_filter( 'wp_enqueue_scripts', 'storefront_woocommerce_scripts', 1);The number “1” at the end of the code is the priority number, meaning it has first priority to be executed (along with other default WordPress actions).
A theme’s stylesheet has a priority of 10 when it is loaded. This is the default setting WordPress have given themes. You can find it in the /wp-includes/default-filters.php file at around line 205.
What you currently have is a priority setting of 30:
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles', 30);Just change your “30” to 1″ to ensure that the woocommerce.css file is always executed first before any other stylesheet. You can keep the “add_action” in your code instead of “add_filter” like I have stated. I haven’t come across any problems with either.
Forum: Fixing WordPress
In reply to: Sidebars!Hey inauspicious,
I’m Eric, the author of 3COL-RDMBANRR, and I have a Support Forum for any questions/comments/concerns about all of my themes. Since you’re already asking your questions here I’ll go ahead answer them here as well.
There are 6 files you’ll have to edit if you want to move the sidebar to end up with a [sidebar] [content] [sidebar] layout: 404.php, archive.php, index.php, page.php, search.php, and single.php. I know it sounds like a lot, but you’re only going to move around 1 short line of code.
Start with 404.php. Open up that file and find this code:
<?php include ('sidebar1.php'); ?>Take that code and move it ABOVE this code:
<div id="content">Repeat this step for the other 5 files. When you’re done you should have code looking like this:
<?php include ('sidebar1.php'); ?> <div id="content">My time is currently limited right now so I’ll have to get back to you on that image problem you’re having with the text widget.
Forum: Themes and Templates
In reply to: Themes don’t show up in AdminDo you mean that there are no themes to select from even though you’ve uploaded them into the wp-content/themes folder?
Or are you talking about when you actually select a theme, then the preview box shows up, but its just a blank white box?
Forum: Fixing WordPress
In reply to: Category Post Count as LinkI totally forgot to answer the TOPIC’s question and went straight to crewchief.
In greencode’s case this doesn’t work but in crewchief’s case it does.
Just wanted to clarify that.
Forum: Fixing WordPress
In reply to: Category Post Count as LinkTHIS IS THE CLOSEST I’VE GOTTEN TO FINDING A SOLUTION FOR THIS WITHOUT HAVING TO HACK CORE FILES.
I came across this problem and could only find a CSS solution. I’ll give the reason why the (#) gets misplaced, the code itself, and the pros and cons about the solution, but first I’ll give you a working example of the solution:
I’ve implemented this CSS code in one of my themes. You can see it working here.
Reason for the (#) misplacement: A lot of themes use a “blocked” (display: block;) CSS style link. My theme above uses a blocked style link. Blocked style means the link will fill up one whole line of space in its container. In this case, the link fills up one whole line in the sidebar. Since the (#) isn’t part of the link it gets pushed down to the next line and you get:
Category
(16)
Category
(21)Now for the CSS code to fix this blocked style. ADD THIS CODE TO YOUR STYLE.CSS FILE (Anywhere is fine. I suggest the bottom though.)
.widget_categories ul li a { display: inline !important; /* cancels out blocked style links */ }Of course your sidebar CSS styles might differ so this code won’t match your sidebars link layout. You’ll notice that once you add this code to your STYLE.CSS file and save your changes. This is where you have to do some coding yourself (crewchief) by looking at how your sidebar links are styled in your STYLE.CSS file. If you don’t want to learn a little bit of coding you can always send me your style.css file and I’ll do the coding for you. I’ll also give you an explanation of what I did 🙂
Pros: THE (#) ENDS UP WHERE IT SHOULD BE!!
Cons: It sucks… beacause the (#) still isn’t a link! Oh well though right?Once again, this is the closest I’ve gotten to finding a solution without having to hack core files.
Forum: Fixing WordPress
In reply to: rotating banner out of sync in SafariDid you alter the theme in any way?
Do not alter random.php. I was actually supposed to take that “edit second digit for number of left/rightbanner pictures” comment out.
I just tested the theme in Safari and it’s working fine. I used 3COL-RDMBAN RR version 1.5.1 theme with Safari 3.2.2.
Forum: Themes and Templates
In reply to: TAKTEEKMEDIA ThemesUpdate: I am no longer hosting takteekmedia.com. Some random person decided to buy the name to obtain hits for his google ads.
You can always go to
http://www.ericcrooks.com/themes to see what’s going on with my themes though :).Forum: Themes and Templates
In reply to: can’t get rid ofThanks for liking my theme, steeephen :).
gemboy actually had his problem with the OLD version (versions 1.4 and below) of my theme. He was asking to delete the essentials bar which is actually the sidebar. I just like to add the heading “Essentials” to my sidebars because it contains essential data.
Now if he was talking about the actually Essentials heading then all he had to do was delete the <h2>Essentials</h2> code in sidebar1.php and any default content he didn’t want and keep the sidebar active as you already stated said, steephen.
The HTML/PHP hierarchy wasn’t well organized in the old versions but in 1.5 I redesigned, recoded, and reorganized everything so this topic is actually outdated to the max.
Forum: Themes and Templates
In reply to: can’t get rid of“no matter what you do”
in the index, single, and page php.. delete the sidebar codes
Forum: Your WordPress
In reply to: v. simple tumblelog designclean
Forum: Fixing WordPress
In reply to: Next and Previous post links don’t workdid you solve your problem? im having this same problem
Forum: Themes and Templates
In reply to: Brown Coffe theme header – help!if i was looking at the right theme.. go to your stylesheet in your theme editor and look for
#header {
height: 160px;
margin: 70px;
overflow: hidden;
background: transparent url(banner.png) no-repeat;
border: 0px solid #7f582b;}
just take out this line..
background: transparent url(banner.png) no-repeat;
if you want to replace the logo then you’re gonna have to edit a your header.php.. look for
<div id=”header”>
</div>
you can delete anything after the opening div but before the closing div and replace it with whatever you want