Topic: Code & Snippets

CSS, JavaScript, PHP snippets, child theme and template overrides.

CSS, JavaScript, PHP snippets, child theme and template overrides.

15 articles

How to add more share links in blog posts and product pages

Adding social share in blog posts Simply access Settings › General › Page Settings › Single Post › Social Sharing links and you should be able to find the options related to the social icons eg: screenshot . You can disable them or add/remove other icons. Adding social share in product pages Please access Settings […]

CONTINUE READING How to add more share links in blog posts and product pages 2 min read

How to add custom CSS

To add custom CSS there are several methods: Child theme’s style.css First, you need to make sure you have a child theme installed. Read how to install child theme. Once you have it installed, open style.css and paste the CSS code inside it. WordPress has a built-in code editor, so you can access WordPress > […]

CONTINUE READING How to add custom CSS 1 min read

Code snippets

Most of these codes should be pasted into wp-content/themes/rey-child/functions.php . Product catalog Change Product title’s heading tag By default it’s H2 but you can change it with this snippet below. Change “New” badge text Change “SOLD OUT” badge text ACF fields: Place custom data over the product thumbnail in product catalog ACF fields: Add custom […]

CONTINUE READING Code snippets 18 min read