Administration CSS Styles

We’ve added some extra CSS style rules for your administration area. Post Type List Pages – Tables Additional classes have been included to make column styling easier and more uniform. .column_bold .column_italic .column_red .column_green .column_light .column_dark These are mainly used in conjunction with the customColumns() function of Fuse\PostType.

Read More

Setting up theme CSS stylesheets

The Fuse CMS Framework makes it easy to queue your themes CSS Files – because that’s done automatically for you. Fuse also checks if you are using a child theme, and automatically queues the child theme’s stylesheet in the correct order as well. global $fuse; $fuse->template->css->register (new \Fuse\Queue\Item\Css (‘stylesheet_alias’, FUSE_THEME_NAME_BASE_URI.’/css/my-stylesheet.css’);

Read More

Setting dependencies for your child themes stylesheet

Setting dependencies for your themes stylesheets is done using the fuse_css_fuse_theme_style_dependencies filter. add_filter (‘fuse_css_fuse_theme_style_dependencies’, array ($this, ‘stylesheetDependencies’)); /**  * Add our stylesheet dependencies.  */ public function stylesheetDependencies ($deps) {     $deps [] = ‘superfish’;     $deps [] = ‘colorbox’;     return $deps; } // stylesheetDependencies ()

Read More

Queuing Assets

The Fuse CMS Framework comes with several JavaScript asset libraries. To use these assets you need to set them as dependencies when you register your JavaScript function files, and also set them as dependencies for your themes stylesheet (see above for information). A full example looks like this. <?php /** * Set up our theme. […]

Read More

Adding JavaScript and CSS to your site.

The Fuse CMS Framework makes it easy to add CSS and JavaScript files to your website from your theme or plugin. JavaScript and CSS is managed by the queue objects in the main Fuse Framework class that’s globally available as $fuse. global $fuse; You need to use the queues in the main Fuse class to […]

Read More