openbayou
Forum Replies Created
-
Forum: Plugins
In reply to: [Fancy Excerpt] Messes up schedule posts on WP 4.0It prevents the post from publishing. The post shows up as ‘Missed Schedule’ and how many minutes after the post was schedule to post. I found this out by deactivating all my plugins and scheduled a post. Everything worked until I activated fancy excerpt.
Forum: Themes and Templates
In reply to: Check for specific size of thumbnail?Forum: Plugins
In reply to: [Infinite-Scroll] no additional posts to loadUPDATE: Got it to work!
`<?php if ( 1 > get_query_var( ‘paged’ ) ) { ?>
<?php if ( is_first_post() ) { ?>
first! <br />
<?php the_title();?>
<?php the_excerpt();?>
<?php } else { ?>
1 – <?php the_title();?>
<?php the_excerpt();?>
<?php } ?>
<?php } else { ?>
2 – <?php the_title(); ?>
<?php the_excerpt();?>
<?php } ?>`You can see it in action – https://openbayou.staging.wpengine.com
Next question I have (same topic) is can this be cleaned up to make it simply as the code underneath is_first_page are duplicates
`<?php } else { ?>
1 – <?php the_title();?>
<?php the_excerpt();?>
<?php } ?>
<?php } else { ?>
2 – <?php the_title(); ?>
<?php the_excerpt();?>
<?php } ?> `Thank you so much for the help!
Forum: Plugins
In reply to: [Live Blogging] Building a theme around live bloggingFound it:
(get_post_meta($post->ID, '_liveblog_active', true)
Let me try this: Is there a way that a metabox with a text box can write multiple entries to one meta key?
Forum: Themes and Templates
In reply to: Redirect to child theme based on broswer, particularly mobile?So far, I found a way to switch to child themes on mobile devices:
# Parent Theme add_filter( 'template', 'my_mobile_template', 99999, 1); function my_mobile_template($template){ if(wp_is_mobile()) return 'mobile_template_dir_name'; return $template; } # Parent or Child Theme (if applicable) add_filter( 'stylesheet', 'my_mobile_stylesheet', 999999, 1); function my_mobile_stylesheet($stylesheet){ if(wp_is_mobile()) return 'mobile_stylesheet_dir_name'; return $stylesheet; }
So far, it pulls the CSS from the child theme. Is there a way to use the header.php in the child theme instead of the primary?
Forum: Themes and Templates
In reply to: Redirect to child theme based on broswer, particularly mobile?I would prefer child themes for mobile and tablet devices but the theme I’m using now has 35K CSS file and the template files are around 25K to 40K. Plus there are blocks that are designed for desktop mode and I would have to create a special block for mobile and use CSS to hide one block, etc.
A responsive theme is not out for me, just as a last resort.