zeaks
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Twenty Twelve] Not Adsense Friendly ThemesI made up something quickly for a friend a few days ago that might be useful to you.
It’s just a basic Twenty Twelve child theme with adsense areas built in. Here’s a screenshot
http://img842.imageshack.us/img842/9393/snap20121127at021250.pngYou basically paste your adsense code into 2 files, save them, and it’ll display ads as shown in the screenshot. There’s instructions in the zip.
If you need ads in the sidebar, paste it into text widgets.
It’s set to only show the content adsense on single.php, but that can be changed by opening adsense-content.pgp and changing the if ( is_single() || is_page() ) part to whatever you want.
Download it here http://zeaks.org/wp-content/downloads/Twenty-Twelve-Adsense.zip
GPL licensed do whatever you want with it.
Forum: Themes and Templates
In reply to: Twenty Eleven – Percentages and Width AdjustmentsReduce the margin and increase the width by the same amount.
.left-sidebar #secondary { margin-left: 7.6%; width: 23.8%; }if you reduce the margin by 2% increase the width by 2%
Here is my updated post on the Twenty Eleven sidebar
http://zeaks.org/general/twenty-eleven-sidebar-width-explained-and-2-bonus-layouts/Forum: Themes and Templates
In reply to: Twenty Twelve style regular menu onlyUsing @media screen and (min-width: 600px) around my menu modifications seems to work perfect. Thanks again for the idea.
Forum: Themes and Templates
In reply to: Twenty Twelve style regular menu onlyThat might be a way around it.
I’d be really surprised if there wasn’t a class specific to the main menu though. If I so much as add padding to it, or a background it’ll mess with the mobile menu.
Thanks for the @media idea, I’ll try that out.
Forum: Themes and Templates
In reply to: Change widget area order in child themeScratch that, it’s not working.
This is what I have in functions
function conditional_sidebar_body_class( $classes ) { if ( ! is_active_sidebar( 'sidebar-4' ) && ! is_active_sidebar( 'sidebar-5' ) ) $classes[] = 'full-width'; return $classes; } add_filter( 'body_class', 'conditional_sidebar_body_class' );And this is my sidebar.php
<?php if ( is_active_sidebar( 'sidebar-4' ) ) : ?> <div id="secondary" class="widget-area" role="complementary"> <?php dynamic_sidebar( 'sidebar-4' ); ?> </div><!-- #secondary --> <?php endif; ?> <?php if ( is_active_sidebar( 'sidebar-5' ) ) : ?> <div id="extra-sidebar" class="widget-area" role="complementary"> <?php dynamic_sidebar( 'sidebar-5' ); ?> </div><!-- .extra-sidebar .widget-area --> <?php endif; ?>What am I doing wrong?
Forum: Themes and Templates
In reply to: Change widget area order in child themeI figured this out, had to use
// If sidebar is inactive use full width body class function conditional_sidebar_body_class( $classes ) { if ( ! dynamic_sidebar( 'sidebar-4' ) && dynamic_sidebar( 'sidebar-5' ) ) $classes[] = 'full-width'; return $classes; } add_filter( 'body_class', 'conditional_sidebar_body_class' );Forum: Themes and Templates
In reply to: Change widget area order in child themeI tried with new id’s sidebar-7 being the “main sidebar”. The first problem I ran into was the main sidebar is pushed down under the content.
I’m guessing it’s got something to do with the content width conditional. If sidebar-1 isn’t active it’ll use the full-width body class to display a 1 column layout.
I changed the id in sidebar.php to sidebar-7 then I added to functions.php
function conditional_sidebar_body_class( $classes ) { if ( is_active_sidebar( 'sidebar-7' ) ) $classes[] = 'full-width'; return $classes; } add_filter( 'body_class', 'conditional_sidebar_body_class' );But the sidebar still stays below the content.
Any ideas?
Forum: Everything else WordPress
In reply to: Theme name Copywrite questionThanks, that answers my question
Forum: Themes and Templates
In reply to: Exclude post formats from custom loopWow nevermind, I think I’ve been staring at this for too long, it does work.
I had been playing around with the posts formats and had them all set as links and quotes, everything but what I had excluded.Thanks for the help
Forum: Themes and Templates
In reply to: Exclude post formats from custom loopI don’t have any plugins installed but wp-pagenavi which I’ve removed, and it’s a new wp install.
I tried this using your example as a test template and it limits the posts but won’t filter the formats. The first two posts it displays are an aside and gallery format.
<?php get_header(); ?> <?php $formats = new WP_Query( array( 'posts_per_page' => 4, 'paged' => get_query_var('paged'), 'tax_query' => array( array( 'taxonomy' => 'post_format', 'field' => 'slug', 'terms' => array( 'post-format-link', 'post-format-aside', 'post-format-gallery' ), 'operator' => 'NOT IN', ) ) )); if( $formats->have_posts() ) : while( $formats->have_posts() ) : $formats->the_post(); echo '<h4>'; the_title(); echo '</h4>'; endwhile; endif; wp_reset_postdata(); ?> <?php get_sidebar( 'front' ); ?> <?php get_footer(); ?>Forum: Themes and Templates
In reply to: Pagination for static page with post loopThis is working now, I’ll post what I did in case anyone else needs it. Above the query in the page template I added
global $paged, $wp_query, $wp; $args = wp_parse_args($wp->matched_query); if ( !empty ( $args['paged'] ) ) { $wp_query->set('paged', $args['paged']); $paged = $args['paged']; }Forum: Themes and Templates
In reply to: Thumbnail breaking out of divThanks for the help
Forum: Themes and Templates
In reply to: Thumbnail breaking out of divah, you’re right, it is the padding. Is there any way for it to take into consideration the 10px padding around the image without making the div wider?
Forum: Your WordPress
In reply to: BuddytweetsNice choice of colors for most of it, layout is good.
Few things I noticed.
- Text is a bit hard to read on the page you linked, line height is off or something, it’s centered while the video is off to the left.
- Content is pulled up too close to the blue header area, i hardly even noticed the “Social media marketing” above the video.
- Menu area should be lowered a bit, it’s covering the logo text when items are hovered over, and would just look better if it was lowered.
- Menu hover effect doesn’t really match the site
- Logo image could also be lowered, it’s almost flush with the top of the browser
- Add some a:hover effects to links in the footer, possibly other areas
- Footer could be cleaned up a bit, the brown block isn’t doing much for it (the jetpack smile is minor and can be turned off in settings)
- Buttons (EX: signup now) don’t match, font is too small on the button and blue color is off
- Forum headers and font do not match the site, forum headers might look good as the color you used in the blue header area.
Sounds like alot but it’s not really, don’t think I’m picking the design apart, just letting you know what I noticed.
Forum: Themes and Templates
In reply to: How do I get these bullet points to disappear?Not sure why but
td{ list-style: none outside none; }Works in firebug