Ben provides a step-by-step walkthrough of the WP Code Snippets plugin, demonstrating its functionality and showcasing how users can leverage this tool to easily manage and implement custom code snippets within their WordPress websites.
Notes
Use plugin to easily manage and implement custom code snippets in WordPress websites.
Walkthrough
- Free plugin
- WPCode
- Enable and then show examples
- Then disabled
GA tracking
- Copy code
- HTML type / Auto Insert / Site wide header
- Title ‘GA tracking’
- Set active
<!– Google tag (gtag.js) –><script async src=”https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX”></script><script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag(‘js’, new Date());
gtag(‘config’, ‘G-XXXXXXXXXX’);</script>
Posts
- Simple paragraph with link to subscribe
- HTML type / Auto Insert / Between Posts
- Title ‘Subscribe Link’
- Set active
<p style=”background-color: #FBE289; padding: 1em;”>Don’t forget to <a href=”/subscribe/”>subscribe</a></p>
SayHola widget
Schema
- Integrations
- HTML type / Site Wide Footer
- Copy/paste structured data code – Remove P tags
- Title ‘Org Schema’
- Set active
- Search code for ‘Organization’
Review
- Integrations
- Copy/paste Scorecard widget
- HTML type / Shortcode
- Title ‘Review Widget’
- Set active
- Add on home page
WooCommerce
- PHP type / Auto insert
- Copy/paste code
- Title ‘Insert before add to cart button’
- Set active
Image by ThisIsEngineering, Pexel.
Need some Marketing help?
-
Make changes to a WordPress website£130.00 ex VAT
-
Half day WordPress workshop£520.00 ex VAT