The issue is that your plugin should not be outputting anything to the browser on init. As you can see by the error, some code in pluggable.php is trying to set a header, but headers were already sent when your plugin sent output. If you want to output markup, you have to hook something in the page body, like wp_footer.
Related Posts:
- How to target with css, admin elements according to user role level?
- Best way of adding CSS which can be manipulated by the user via theme option panels?
- Need help on WordPress and php
- Multiple pages on one with different HTML
- WordPress Customizer not setting default value upon initial install?
- wp_enqueue_style with style.php and WordPress functions
- Minify HTML, CSS, JS with PHPWee?
- WordPress override bloginfo variable
- Shortcode content output but not in correct place
- Displaying theme options in css
- Show post in slider
- Add a custom stylesheet for BlackBerry
- How can I hide Home in my menu in a specific page?
- Hide Hamburger Menu On Specific Page (Front Page/Home Page)
- how to remove metadata from the posts of my blog?
- Is there CSS to expand the gallery limit on Index Pages?
- How to add condition in wordpress loop? [closed]
- Different post styles depending on category
- Which is the correct way to conditionally enqueue a CSS file?
- proper way to add css using functions.php?
- Use PHP in stylesheet to specify a background image based on Category ID
- RTL Stylesheet Confusion with WordPress
- WordPress wp_add_inline_style unable to give hex colors?
- How to make container class in PHP
- How to create table in wordpress without plugin? [closed]
- PHP in CSS file?
- Add class to DIV depending on page loaded
- Liking a facebook page from wordpress website?
- trouble with page_id & highlighting current page
- Last class on last headline?
- wordpress admin plugin menu custom css
- How to remove sidebar primary widget on Mobile on category page [closed]
- How to Change CSS Colors from Custom Plugin Settings Page
- Can I set up a hover animation in CSS depending on a PHP conditional?
- Where can I find the inline-css of my theme header?
- Website completely messes up when logging out
- Issue Enqueueing WordPress style.css
- How to add new CSS file to new PHP file
- Applying CSS on PHP variable [closed]
- CSS images don’t show up with bloginfo
- Using theme options to change a border-radius value
- Displaying images outside the content
- how to changes mobile menu toggle breakpoint in WordPress
- Timber right sidebar in WordPress theme
- Applying css in functions.php
- How to Remove Theme Style CSS inside Custom Plugin?
- Add other class content with reference class value
- PHP function for horizontal Woocommerce thumbnails and badges
- oceanwp+woo mobile cart sidebar text
- Adding Custom css file in the wp-uploads directory with custom php functions
- My top header looks different on single pages but is fine on the home page
- Using php code inside style tag
- How to hide a div section when user is logged in, in single product woocommerce
- How do I integrate vanilla Javascript to a wordpress website?
- Drop down question
- Can’t display anything through homepage text editor
- Cannot dequeue Elementor Font Awesome css
- How to find and delete a menu item in php?
- How to print all the inline styles in the WP_Styles instance together with their keys?
- The style.php file inside theme-engine folder has other content on FTP
- WordPress Slider is not working
- How to display post meta bellow every posts
- How to let mobile navigation menu close when link is clicked?
- Add Shortcode to ::before class
- Site title not showing. Please help me
- Fix hover images blink
- Hot to edit WooCOmmerce dashboard?
- Blog Image and Title in Right Sidebar
- Target a specific container to style on WordPress storefront theme
- Displaying POST content with HTML tags and all
- How to add Open/Close Toggle button into Twenty Fifteen theme for hiding left sidebar?
- Position a repeated article blocks
- Custom Thumbnails [closed]
- Custom Theme, Editor won’t wrap text (i.e. change width)
- Click to expand menu
- Revision History for Entire WordPress Site
- wp add inline style in loop
- WordPress – Image href for home menu nav not working
- Display pages from specific page template
- WP_Nav Highlight Parent Issue
- How do I use CSS or PHP to customize WordPress Form Manager Plugin Table?
- Sidebar doesnt get updated?
- How to NOT override inline css rules
- Add CSS class to PHP Statement
- How to add margin underneath woocommerce total price amount -> productpages
- Load files content [closed]
- Load slideshow.css file only if Slideshow is checked / on
- Predefine Magazine Style Layouts
- New to wordpress. Need Help with templates [closed]
- It’s not showing full content for posts pages in wordpress “[…]” while customing some changes in the style.css file [closed]
- Add a “Next Post” & “Previous Post” styled button manually to a post
- Parse error: syntax error, unexpected ‘}’ in
- Sorting Problem
- Custom HTML/CSS Theme into WordPress – SEO considerations
- ‘This Field is Required.’ is Not Displaying on CF7 [closed]
- WooCommerce Checkout Cart [closed]
- why css file not link?how to create permalink?
- Using Featured Image as Hero Background in Word Press
- Live Preview while customizing is not showing the updates while editing in WordPress
- Hide or Show Read More Button by Content Area