I managed to solve this issue, so if anyone is interested, I’ll show what I did below.
I placed the aforementioned DIV in the WooCommerce plugin’s wocommerce-template.php file, in the first function on line 29 (woocommerce_content). I placed it on line 46, so that it was in the ‘else’ part of the if statement that checks whether or not the page is a single product.
This means that it will only show up on main pages, not single product pages.
I hope this helps someone.
Related Posts:
- Pass PHP variable to javascript
- WordPress plugin archive
- Namespaces in WordPress – How do I initiate the main class?
- Notify commenters about new replies
- Plugin readme.txt and assets internationalization
- Image Crop/Resize Function/Code Sinppet/Plugin to adjust/crop images during upload
- post expire after x days
- MailChimp integration that allows users to select from multiple lists [closed]
- How to handle autoloading with composer by keeping the WordPress naming conventions?
- cURL error 60: SSL certificate problem: unable to get local issuer certificate
- filemtime() warning when enqueuing style within plugin
- How to structure a plugin into multiple files using classes?
- WordPress logo upload option in theme panel
- Woocommerce – Display active variation product price [closed]
- Minimum PHP Required for WordPress
- Post query – show posts from specified day and month and whole years
- Support for simultaneous editing
- How to add social locker on custom fields
- tag breaks shortcode output (other solutions don’t work)
- How can I disable widget from being visible on some pages?
- Is this the right way to execute some PHP in my plugin after a button click on an options page?
- Show Sub pages excerpt+thumbnail
- Create entire wordpress as a github repositery?
- How to overwrite core/libraries/vendor template with child theme
- Plugin integrate in forum to show user profiles [closed]
- WordPress multi domain – redirect
- WP_Query and NULL meta keys
- Is it possible make a back-end for WordPress with WordPress?
- plugin shortcode output
- how to add text to posts from tags
- Is there a WordPress plugin that can post to Google+? [closed]
- How to include this jQuery File in wordpress?
- WordPress checkbox and Illegal string offset
- dbDelta not adding additional columns in plugin database update
- Fatal error in form display plugin
- Why do plugins often ask to add in to templates?
- Is it fair to use MIT licensed code in WordPress plugins? [closed]
- How to add an element right after the article using jQuery?
- How to reset wordpress but not plugins and settings
- Infinite scroll messing up nth:of-type
- How do I find out which plugin is exceeding memory limits?
- Taxonomy Drill-Down / Plugin Help – hierarchical queries within plugin?
- PHP script from functions php is loaded via admin-ajax to div…and the result is 0, not the desired content
- How do I avoid having duplicate of plugin in trunk?
- Use current class method inside add_submenu_page()
- Advanced WordPress plugin activation detection
- How to Show Author image and url in WordPress plugin directory? [closed]
- Renaming Custom Taxonomy Values
- Load plugin script in specific page
- How to change php variable value using wp setting api
- jQuery code didn’t run on my plugin
- Call ajax on the frontend
- Not able to override plugin’s default css rules
- Is this plugin safe to run?
- Custom characters of tinymce editor are saved as question mark
- How do I profit from a Plugin?
- Can I customize an Elementor template after inserting it? [closed]
- Themes conflicts and overrides my WordPress Support widget Plugin styles
- Create automatic latest version link
- Some error in mysql script ? Can’t working to create table
- Gutenberg: Prevent links from being clickable in the block. Error: “Cannot destructure property ‘frameElement’ of ‘r’ as it is null.”
- How to Access a file that is inside a plugin’s dir from the theme’s `functions.php` file
- Managing and deleting transients with dynamically generated transient names
- list of custom post by custom field in frontend
- How to add a prefix to a WordPress post preview url?
- i can not access the post in custom template of my wordpress plugin
- How to avoid the 403 Forbidden error in a WP Plugin with Ajax and PHP
- Allow editor user to full permission to access plugin settings
- Elementor JetEngine Listing Grid paging option
- Admin menu hilighting wrong item for CPT
- Exclude Tag Links from and Text
- Automatic set a featured image from the first image’s url (or tag) in the article
- How to remove row action “Edit with Visual Composer” in the post list table?
- Flowplayer – Warning: Division by zero
- Why all my wordpress sites keeps telling me that everything is up to date at /wp-admin/update-core.php?
- How can I save cookies to members
- How to use get_user_by in plugin
- Defined user role to access plugin’s pages
- How to add wpmode in Flash Embed Code in WordPress Site?
- Inactive Plugin Files
- Better code/text editing for posts and pages?
- Any way to edit/crop my featured image upon uploading?
- Saving an array to get_options
- How to set different users for different pages?
- Strip shortcode from excerpt [duplicate]
- HTTP Error 403 When Trying to Login
- plugin’s script and style enqueing not working on Thesis
- How can I server scaled images?
- WordPress site down after installing a plugin. Can’t connect with FTP with correct details
- add query string to all pages after user logged in
- How to add plugin to blog [closed]
- how to display the page content in popup window?
- Code snippet plugin not working correctly with Windows live writer and WordPress
- Jquery based image accordian plugin
- Can’t modify plugin function
- WordPress error Fatal error: Uncaught TypeError: Argument 3 passed to Automattic :get_setting_for_feature() [closed]
- Form with response button after on table after submission
- Fatal error in wordpress
- how to add meta for order in woocommerce
- Increased max_upload_filesize, but still can’t upload plugin [closed]