Primary Button for my plugin button? (2 posts)

  1. nubdienub
    Posted 3 years ago #

    Hello, I was practicing with custom WordPress plugins and I tried the following code:

     Plugin Name: Ontdubbelaar
     Description: Het ontdubbelen van dubbelingen
     Version: 1.0
     License: GPL
     Author: Anon
     Author URI: anon.test.nl
    function uploadFile() {
    	<div class="wrap">
    	<h2> Test </h2>
    	<form action="" method="post" >
      		<input type="submit" name="test" value="submit"	class="button-primary" />

    When I call the shortcode [upload] the button appears aswell as the h2 but the css class "button-primary" does not apply on the button. What am I missing, do I have to include the path of css in my plugin?

  2. nubdienub
    Posted 3 years ago #

    So it appears that this code does work in a custom menu in the dashboard but not in a page post, anyone who can do anything with that information?

Topic Closed

This topic has been closed to new replies.

About this Topic