Forum Replies Created
-
AuthorPosts
-
ZeroGravity
MemberThere was a CSS fix provided by he FooGallery developer.
https://wordpress.org/support/topic/gallery-cut-off-in-chrome-and-on-mac-in-safari?replies=3
Darren Burns
Zero Gravity Web WorksZeroGravity
MemberI think I have narrowed this down to home.js setting the height of the image-section divs before the foogallery has finished loading in the mentioned browsers. I don't really know a lot of jquery but have tried triggering the window resize event after the page has loaded (via the
Page-specific Scripts). I also tried applying a setTimeout to the window resize function in home.js. Neither of these seem to work.Can anyone offer a suggestion for how/when to trigger a window resize event and if this is the correct way to go about it. Assuming this is what is creating the error.
Thanks!
Darren Burns
Zero Gravity Web WorksZeroGravity
MemberJust noticed this is also happening with chrome on a PC. Also noticed that if you resize the browser window (even if it doesn't affect the site-container width) the front-page-1 div expands to contain the content.
Getting desperate on this if you don't know why this may be happening but have a suggestion where we should start looking that would be a great help.
CSS? Javascript?
Many Thanks!
Darren Burns
Zero Gravity Web WorksZeroGravity
MemberThanks Stéphane! I imagine I may have some questions as I start developing the site.
Darren Burns
Zero Gravity Web WorksZeroGravity
MemberCarrie,
Thank you so much for digging into this for me! It looks like multi-site is the way to go then. I think I will post this over on the twitter thread as well but are they meaning avoid the multi-site, mutli-language plugins as well? i.e. Multisite Language Switcher and Multilingual Press
Darren Burns
Zero Gravity Web WorksZeroGravity
MemberThe page template I am trying to set it the standard Genesis Archive template. From the template file this is "Archive." I can set the template under page attributes but I am trying to set it dynamically.
I am creating pages dynamically when a user signs up in a multi-site system. I am able to create a page for the archive but I cannot set the template to the Archive template when the template file is in the Genesis folder. If I copy page_archive.php to the child theme folder it works.
I would much rather set it to the standard template in the Genesis folder than a copy in the theme folder.
Darren
Darren Burns
Zero Gravity Web WorksZeroGravity
MemberThanks for your reply Brad, sorry I haven't go back to you before now. I am trying to use as few plugins as possible. This is the code I have in blog-settings.php.
/* * Settings to customise the blog and archive pages. */ // Add Content (excerpt) for the posts in this Page Template remove_action('genesis_post_content', 'genesis_do_post_content'); add_action('genesis_post_content', 'mmttj_do_post_content'); function mmttj_do_post_content() { the_excerpt(); } // Add Featured Image for the posts in this Page Template remove_action('genesis_post_content', 'genesis_do_post_image'); add_action('genesis_post_content', 'mmttj_do_post_image', 7); function mmttj_do_post_image() { $img = genesis_get_image( array( 'format' => 'html', 'size' => 'thumbnail', 'attr' => array( 'class' => 'alignleft post-image' ) ) ); printf( '<a href="%s" title="%s">%s</a>', get_permalink(), the_title_attribute('echo=0'), $img ); } // Add read more link after excerpt add_filter('the_excerpt', 'excerpt_read_more_link'); function excerpt_read_more_link($output) { global $post; return $output . '[<a href="'. get_permalink($post->ID) . '">Continue Reading…</a>]'; } // Modify length of post excerpts add_filter('excerpt_length', 'mmttj_excerpt_length'); function mmttj_excerpt_length($length) { return 100; // pull first 100 words } // Set page navigation to numeric remove_action( 'genesis_after_endwhile', 'genesis_posts_nav' ); add_action( 'genesis_after_endwhile', 'mmttj_posts_nav' ); function mmttj_posts_nav() { genesis_numeric_posts_nav(); }
Darren Burns
Zero Gravity Web WorksZeroGravity
MemberHi Frederika,
Getting a page 404 not found error with the link you provided.
Darren Burns
Zero Gravity Web WorksZeroGravity
MemberThis is what I finally ended up with. I'm still open to any suggestions as to whether there is a better way to do this.
add_action('genesis_loop', 'photo_competition_loop'); function photo_competition_loop() { $paged = get_query_var('paged') ? get_query_var('paged') : 1; $cf = genesis_get_custom_field('terms'); $args = array( 'post_type' => 'mmt_photo_comp', 'tax_query' => array( array( 'taxonomy' => 'mmt_photo_categories', 'field' => 'id', 'terms' => $cf ) ), 'showposts' => genesis_get_option('crystal_portfolio_cat_num'), 'paged' => $paged ); $query_args = wp_parse_args($cf, $args); genesis_custom_loop( $query_args ); }
Darren Burns
Zero Gravity Web WorksZeroGravity
MemberAlways the way. Just after I post the question I find the answer that has been staring me in the face the whole time and it seems so simple. I'm not sure if this is correct or best practice but I changed the $args assignment in portfolio_loop() to:
$args = array('post_type' => 'photo_competition', 'category__not_in' => $exclude, 'showposts' => genesis_get_option('crystal_portfolio_cat_num'), 'paged' => $paged);
If this isn't the correct way to do it or if there is a better way please let me know. I'm assuming the category__not_in parameter and custom field query_args option will also function. I haven't tested those yet.
Also if any one knows how to change the theme settings meta box to be able to select a custom post type that would be great.
Darren Burns
Zero Gravity Web Works -
AuthorPosts