david221
Forum Replies Created
-
Forum: Plugins
In reply to: [Participants Database] Auto-populating forms?Sorry for the late reply. I realize that the plugin isn’t suitable for what I am trying to do.
Thanks.
Forum: Fixing WordPress
In reply to: Strange numbers – 11111 – in header; can't get rid of 'emI fixed this problem. All I did was go to the functions.php file in my parent Skeleton theme, and removed ‘echo’ from the line apply_filters (‘child_add_stylesheets’,$stylesheets);.
Thanks, snyrke! That did the trick! ??
Of course, I should mention that I did that edit in the original Skeleton theme’s functions file.
Forum: Plugins
In reply to: [Multiple content blocks] Can I use this plugin for WooCommerce products?Never mind, I solved it!
After typing in <?php the_block(‘News’) ?> in my PHP file, I immediately turned on the ‘Show inactive blocks’ option in MCB’s settings, and I refreshed the page to get the block working.
I guess my only remaining question is how to get the content block appear on screen without needing to refresh the page manually?
Forum: Plugins
In reply to: [Yoast SEO] 404 error on /ml-slider-sitemap.xml in Google Webmaster ToolsActually, I just pressed the ‘XML Sitemap’ button after I ticked off Meta Slider, and it works now. I wasn’t really paying attention properly before. :/
But what I’d like to know is does it matter if the Meta Slider’s sitemap still appears in Google Webmaster Tools? I’ve just started using GWT, so I’m not completely certain on how everyting works.
Forum: Themes and Templates
In reply to: Uploading jQuery files properlyNever mind, I figured it out. I didn’t write the enqueue script properly.
add_action(‘wp_enqueue_scripts’, ‘enqueue_assets’);
function enqueue_assets() {
wp_enqueue_script( ‘delay’, get_stylesheet_directory_uri(). “/js/delay.js”, array(‘jquery’), $version, true);
}Forum: Plugins
In reply to: [WooCommerce] Editing single productsI should also mention that changing the code and adding the actions here don’t remove or add fields, but instead they re-arrange the short description field to appear on the top of the page.
Forum: Plugins
In reply to: [WooCommerce] Editing single productsNever mind, I eventually worked it out.
First, I took a copy of the content-single-product.php file from woocommerce’s plugin folder, and then I put it into my child theme folder.
I grabbed this block of code under <!– .summary –>:
<?php
/**
* woocommerce_after_single_product_summary hook
*
* @hooked woocommerce_output_product_data_tabs – 10
* @hooked woocommerce_upsell_display – 15
* @hooked woocommerce_output_related_products – 20
*/
do_action( ‘woocommerce_after_single_product_summary’ );
?>…and moved it up to the top, before <div itemscope itemtype=”<?php echo woocommerce_get_product_schema(); ?>”.
And then finally, I went to the functions.php file, and added these lines at the bottom of the page:
remove_action( ‘woocommerce_single_product_summary’, ‘woocommerce_template_single_title’, 5 );
add_action( ‘woocommerce_before_single_product_summary’, ‘woocommerce_template_single_title’, 5 );Forum: Fixing WordPress
In reply to: Trying to manually embed HTML5 video in WPI worked it out.
.wide-content { overflow: hidden; height: 400px; clear: both; border-bottom: 12px solid #67771F; }
Forum: Fixing WordPress
In reply to: Trying to manually embed HTML5 video in WPI suppose it’s a good idea to show my code to tell what I’ve done so far.
.video-container { width: 100%; } .wide-content .video-content { padding-top: 0; padding-bottom: 0; } .wide-content .content-segment { padding-top: 0; padding-bottom: 0; } .video-content { width: 100%; height: 400px; position: relative; overflow: hidden; } .wide-content>* { min-height: 20px; } .video-segment .banner-container .horse-banner { position: absolute; z-index: -10; }
Forum: Fixing WordPress
In reply to: Trying to manually embed HTML5 video in WPThanks AI. You were right, the code I had was working perfectly.
But I have one more question: is it possible to shorten the height and the width of the video evenly? I tried doing it normally in CSS, but it didn’t work out.
Actually, forget it.
It turned out that I didn’t tick ‘Inline content’ in Easy Fancybox’s options.
e.g. Settings->Media->Tick ‘Inline Content’.Thanks :/
Forum: Themes and Templates
In reply to: How to add multiple stylesheets to your theme?Thanks, it worked as you instructed. ??
Ah-HA! I got it!
You meant to say do_shortcode without the ‘s’ on the end.
$extras .= '<div id="newsletter-pop">'.do_shortcode('[gravityform id="1" name="Newsletter"]').'</div>';
Thank you very much for your help, much appreciated! ??
Sorry, I meant to say the code for writing ‘.do_shortcodes.’ in the $extras .= line hid my entire footer.
I tried to change ‘skeleton_footer’ to ‘wp_footer’, but that doesn’t do anything.