Title: Primary Button for my plugin button?
Last modified: August 21, 2016

---

# Primary Button for my plugin button?

 *  [nubdienub](https://wordpress.org/support/users/nubdienub/)
 * (@nubdienub)
 * [13 years ago](https://wordpress.org/support/topic/primary-button-for-my-plugin-button/)
 * Hello, I was practicing with custom WordPress plugins and I tried the following
   code:
 *     ```
       <?php
       /*
        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" />
           </form>
       	</div>
       	<?php
       };
       add_shortcode('upload','uploadFile');
       ?>
       ```
   
 * 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?

Viewing 1 replies (of 1 total)

 *  Thread Starter [nubdienub](https://wordpress.org/support/users/nubdienub/)
 * (@nubdienub)
 * [13 years ago](https://wordpress.org/support/topic/primary-button-for-my-plugin-button/#post-3757708)
 * 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?

Viewing 1 replies (of 1 total)

The topic ‘Primary Button for my plugin button?’ is closed to new replies.

## Tags

 * [class](https://wordpress.org/support/topic-tag/class/)
 * [css](https://wordpress.org/support/topic-tag/css/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 1 reply
 * 1 participant
 * Last reply from: [nubdienub](https://wordpress.org/support/users/nubdienub/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/primary-button-for-my-plugin-button/#post-3757708)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
