0
votes
0answers
55 views

Dynamic css for a widget plugin

I have a plugin that creates a widget to show latest posts and I would like to add a dynamic css file to style the post title without using inline styles. So for example i have public function ...
2
votes
1answer
52 views

How to prevent loading of all plugin's resources?

Wordpress is loading all client resources of all plugins, not just the plugin of interest. It may make sense to load jqery globally but it makes no sense to load all other plugin's Javascript in a ...
1
vote
1answer
14 views

Correct check for any admin page with editor

I have read the codex, but found it a bit incomplete. I like to load stuff only on pages where the post editor is visible. This should include custom post types and everything. I am a bit insure ...
1
vote
0answers
35 views

How to remove default style of header in wordpress metabox

I have the problem which when I create a header in my wordpress plugin metabox, it always apply the default style on my header: even when I apply, my own style, <h3 style="background-color: ...
0
votes
1answer
85 views

Using standard backend elements in Plugin

I'm currently writing a plugin for a company. I created a custom backend page where the admin can change settings used by the plugin. Currently it looks very messy because there is just too much ...
0
votes
1answer
128 views

The Events Calendar Plugin - List View Background Colour Issue [closed]

I'm trying to look for some help, I've got a WordPress website that I'm working on. I'm using this plugin called The Events Calendar, but in List View, the background keeps showing in transparency... ...
0
votes
2answers
302 views

How to check if a stylesheet is already loaded?

I was wondering how to check if a css file is already loaded. For example, I have in my theme Font Awesome font-awesome.min.css and I have a plugin that make use of Font Awesome too. So, I ended up ...
1
vote
2answers
154 views

Remove Internal Style Sheet if no Value Provided?

I am using this code to add my options inside head section code works but my problem is that if no values are provided my function still echoes an empty <style type="text/css"><style> into ...
0
votes
2answers
53 views

How To Protect Plugin Display From Being Affected By Theme's CSS

I am developing a custom wp plugin that is using shortcode to display table in the front end. But its front end display is affected by the theme's css. So it is always following the table styling that ...
0
votes
2answers
32 views

Are there any official or unofficial guidelines for the styling of a widget?

I've designed a sidebar widget and found that on many themes the widget looks fine. However, certain themes make the widget look out of place (clashing with colors, bad contrast, etc.) Are there any ...
17
votes
2answers
494 views

Is it ever okay to include inline CSS in plugins?

Normally in a plugin I would add styles using wp_enqueue_style. However, I am currently creating a plugin that only needs a few lines of CSS and I am wondering if it might be better to serve the ...
6
votes
1answer
2k views

How to add sub-menu to a menu generated by wp_nav_menu by using plugin

I have a menu generated by wp_nav_menu which look like <ul class="nav-menu" id="menu-top-nav"> <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-43" ...
0
votes
1answer
113 views

Best practice to include custom user styles in widgets

What's the best way to include custom user styles in widgets? For example adjust colors for buttons, borders etc. without having the user to develop a complete new stylesheet.
0
votes
1answer
229 views

CSS not being applied using wp_enqueue_style

I am trying to load my style sheets in my plugin but they are not being called, the javascript files however, are being loaded. <?php /** Plugin Name: Plugin URI: Description: Version: Author: ...
1
vote
1answer
925 views

How do I register a stylesheet inside a WordPress widget?

I'm developing a WordPress widget following Dave Clements tutorial. It works well. Now I want to add some styles to it. I want the styles to be in an extra css file which will be loaded during ...
0
votes
1answer
61 views

Wordpress Plugin Authoring question about jquery and css

When I'm writing a plugin, do I assume that jquery is included, or should I always wp_enqueue_script it and let wordpress figure it out? Also, what's the best practice for getting an image path ...
-1
votes
1answer
3k views

how to include javascript file and css file in wordpress

I am creating new plugin so i need add a java script file and css file. These are my javascript files jquery.min.js jquery-1.3.2.min.js jquery.tabify.js Css file: newstyle.css
2
votes
1answer
70 views

What is the best way to provide plugin users with a way to customized the styles

I'm working on a plugin to be release to the public, it is a very simple plugin that includes a single html element in the page html. I can do many things to allow users customize its appearance: 1. ...
0
votes
2answers
105 views

Plugin Development/ Stop CSS clashes.

I have searched all over and I am a little confused about my first plugin that I am developing. I created a shortcode that the user can use on any page they create. The issue is that on a lot of ...
1
vote
1answer
104 views

How do I include background images in my stylesheets in a plugin?

I'm trying to specify a background image in a style in a plugin I'm making. I was just outputing tags from the php, but realized I should probably be using enqueue_style... But how do I put a line of ...
0
votes
1answer
198 views

Apply styles to blockquote element with the WYSIWYG editor

I have a blockquote and I can float it left or right if I want by going into the html editor and adding class="alignleft" etc. Is there any way I can make that available to a non tech individual with ...
0
votes
2answers
245 views

wordpress admin plugin menu custom css

I have a plugin that has a top level menu and subsequent submenus. Each one of these pages are going to need their own css and javascript. My code at the moment is: //main menu add_menu_page( "My ...
1
vote
1answer
337 views

How do I write into a file (css)

I'm writing my first wp plugin and I have many problems, most of those I got to solve by just reading the codex, but I don't know how to write into a css file within my plugin's options. Maybe there's ...
0
votes
2answers
2k views

Adding CSS to custom post type admin page causes error

I have this bit of code in my Meteor Slides plugin that loads a stylesheet on the admin pages of just the slides custom post type: add_action('admin_head', 'meteorslides_admin_css'); function ...
12
votes
4answers
7k views

How do I add CSS options to my plugin without using inline styles?

I recently released a plugin, WP Coda Slider, that uses shortcodes to add a jQuery slider to any post or page. I am adding an options page in the next version and I would like to include some CSS ...