Forum Replies Created
-
AuthorPosts
-
JPJP9Member
Thanks Victor
JPJP9MemberOh you're kidding me! The reason this wasn't working is because of the camel case custom post type mediaReleases
The post type was registered as
register_post_type( 'mediaReleases', $args );
I changed it to
register_post_type( 'mediareleases', $args );
and changed the filter function and now it works!
If anyone can explain why using camel case in the instance doesn't work, I would appreciate it.
JPJP9MemberThanks Victor.
Just in case anyone else is having the same issue:
That article relates to maintaining the ratio of SVGs which is fine in my case as the viewbox is set. The issue I was having was the overall size (when CSS was inactive) which I have fixed by setting a max-width on the SVG and then overriding with CSS.JPJP9MemberI have this working - sound OK?
I have this function in functions.php
$filename = get_stylesheet_directory()."/includes-tas/"; if(file_exists($filename)) { require_once( __DIR__ . '/includes-tas/tas.php'); }
Then tas.php includes an enqueue to a custom css file and specific functions to Tas website
JPJP9MemberI'm still struggling with this rewrite.
It has to do with the str_replace as if I replace this line for the CPT
'rewrite' => array( 'slug' => 'products/%product_tax%', 'with_front' => false ),
with
'rewrite' => array( 'slug' => 'products/tax', 'with_front' => false ),
It works fine except using the word tax instead of the actual taxonomy. URLs are correct in all cases except that single throws a 404
JPJP9Member? Anyone
JPJP9MemberHi Victor,
Yes I did. I have this function in the posttypes.php file:
function wt_taxonomy_flush_rewrite() { global $wp_rewrite; $wp_rewrite->flush_rules(); } add_action('init', 'wt_taxonomy_flush_rewrite');
And I did it manually also.
JPJP9MemberOh Wow - I never would have spotted that - thank you so much
JPJP9MemberThanks Victor.
So I've change it to : `
function wt_grid_post_class( $classes ) {
global $wp_query;
if( !$wp_query->is_main_query())
return $classes;$columns = 4;
$classes[] = 'one-fourth';
if( 0 == $wp_query->current_post % $columns )
$classes[] .= ' first';return $classes;
}`
but its still not returning the required 'first' classJPJP9MemberBy adding this to the top of my loop
do_action( 'genesis_before_entry' ); printf( '<article %s>', genesis_attr( 'entry' ) ); do_action( 'genesis_entry_header' ); do_action( 'genesis_before_entry_content' ); printf( '<div %s>', genesis_attr( 'entry-content' ) );
and this to the bottom:
do_action( 'genesis_after_entry_content' ); do_action( 'genesis_entry_footer' ); echo '</article>'; do_action( 'genesis_after_entry' );
I've managed to get the 'one-fourth' added to the article class but its still omitting the 'first' where relevant
JPJP9MemberThank you. Worked a treat.
November 15, 2016 at 10:59 pm in reply to: Change default size for header image in Pro theme #196215JPJP9MemberGlad to hear it.
JPJP9MemberThe nice man at Codekit sorted me out. Just add a ! for strong css comment that doesn't get compressed.
/*!
Theme Name: Theme Name
Theme URI: URI
Description: Master Theme Starter Child Theme
Author: Author Name
Author URI: Author URI
Version: 1.0.0Template: genesis
Text Domain: webtree
/*JPJP9MemberIs there a way to do that with Codekit or will I need to doctor it manually afterwards?
JPJP9MemberAlthough it looks to me like the box the logo is in is the right size - what is happening when you put a logo in that is 400px x 120px?
Perhaps try .site-title {margin: 0; padding: 0;} and .header-image .site-title > a {background-position: 0% 0%;}
Hard to tell without seeing the image in there.
JPJP9MemberSorry Keith, in your css, make sure that these widths are in your CSS:
.header-image .title-area {
max-width: 400px;
}.title-area {
width: 400px;
}JPJP9Memberoh but maybe that because its the original image. Check this css:
.header-image .title-area { max-width: $logo-width; } .title-area { width: $logo-width; }
JPJP9MemberHi Keith,
The image shows up as 234 x 80 (http://milwaukeeguitarschool.com/wp-content/uploads/2016/11/mgs-logo-long-80.png) so maybe you are using the wrong image from the media library or you need to upload a version that this 400 x 120
JP
JPJP9MemberYou need to change the size in the CSS also. Under site header
-
AuthorPosts