Allow user to choose header style

Do you want this to be an option per page? Or side wide. If first, look into this: https://www.advancedcustomfields.com/ If second, look into this: https://blog.templatetoaster.com/wordpress-settings-api-creating-theme-options/

Using WordPress custom post type to display StoryMapJS

what happens if you create the array first and then add to it in the loop. Right now you’re not adding to an array, you just keep creating it. post_name; $args=array( ‘post_type’ => ‘storymap_event’, ‘posts_per_page’ => -1 ); ?> <div id=”mapdiv” style=”width: 100%; height: 600px;”></div> <?php $my_query = null; $my_query = new WP_Query($args); $i=0; $sm_array_slides … Read more

Add custom attribute to product’s HTML to woocommerce cart page

You want to override the file, not edit it directly. How to Edit Files Edit files in an upgrade-safe way using overrides. Copy the template into a directory within your theme named /woocommerce keeping the same file structure but removing the /templates/ subdirectory. Example: To override the cart.php file… copy: wp-content/plugins/woocommerce/templates/cart/cart.php to wp-content/themes/yourtheme/woocommerce/cart/cart.php The copied … Read more

Getting an empty space in up sell items

The issue I was having was that the query calling the items was checking to see if the main item (i.e. the product the user clicked on) was in stock, not the actual up sell items. Can add code snippets later if needed