{"id":27494,"date":"2014-01-27T14:23:38","date_gmt":"2014-01-27T14:23:38","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/gppro-export-css\/"},"modified":"2020-09-08T18:00:09","modified_gmt":"2020-09-08T18:00:09","slug":"gppro-export-css","status":"closed","type":"plugin","link":"https:\/\/snd.wordpress.org\/plugins\/gppro-export-css\/","author":13561679,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.1.1","stable_tag":"1.1.1","tested":"5.5.18","requires":"3.7","requires_php":"","requires_plugins":"","header_name":"Genesis Design Palette Pro - Export CSS","header_author":"Reaktiv Studios","header_description":"","assets_banners_color":"ffffff","last_updated":"2020-09-08 18:00:09","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/andrewnorcross.com\/donate","header_plugin_uri":"https:\/\/genesisdesignpro.com\/","header_author_uri":"https:\/\/genesisdesignpro.com","rating":0,"author_block_rating":0,"active_installs":50,"downloads":5562,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"Nick_theGeek","date":"2018-04-20 21:18:45"},"1.0.1":{"tag":"1.0.1","author":"Nick_theGeek","date":"2018-04-20 21:18:45"},"1.0.2":{"tag":"1.0.2","author":"Nick_theGeek","date":"2018-04-20 21:18:45"},"1.1":{"tag":"1.1","author":"Nick_theGeek","date":"2020-08-14 18:03:55"},"1.1.1":{"tag":"1.1.1","author":"Nick_theGeek","date":"2020-09-08 18:00:09"}},"upgrade_notice":{"1.0.0":"<p>Initial release<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":1002709,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":1002709,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":1386533,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":1386533,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.0.1","1.0.2","1.1","1.1.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":846279,"resolution":"1","location":"assets","locale":""}},"screenshots":{"1":"The export button"}},"plugin_section":[],"plugin_tags":[4445,33378],"plugin_category":[43],"plugin_contributors":[82519,78337,83142],"plugin_business_model":[],"class_list":["post-27494","plugin","type-plugin","status-closed","hentry","plugin_tags-genesis","plugin_tags-genesis-design-palette-pro","plugin_category-customization","plugin_contributors-jjeaton","plugin_contributors-norcross","plugin_contributors-reaktivstudios","plugin_committers-corywebb","plugin_committers-jjeaton","plugin_committers-nick_thegeek","plugin_committers-reaktivstudios","plugin_support_reps-bottomlessdesign"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/gppro-export-css_ffffff.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/gppro-export-css\/assets\/screenshot-1.png?rev=846279","caption":"The export button"}],"raw_content":"<!--section=description-->\n<p>Adds a button to the Design Palette Pro settings tab to export a raw CSS file. Requires the <a href=\"https:\/\/genesisdesignpro.com\/\" title=\"Genesis Design Palette Pro\">Genesis Design Palette Pro<\/a> plugin.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>gppro-export-css<\/code> folder and all its contents to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Go to the \"settings\" tab, scroll down, and click the \"Export CSS\" button<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt><h3>What do I do with this?<\/h3><\/dt>\n<dd><p>This is used to export the complete CSS file from Genesis Design Palette Pro. Do with it as you please, it's your CSS.<\/p><\/dd>\n<dt><h3>How do I use the CSS on another site?<\/h3><\/dt>\n<dd><p>You would need to upload the CSS to the new site and load it. Assuming the CSS file was named <code>gppro-custom.css<\/code> and you uploaded it into your active theme's main folder, the below function would load it.<\/p>\n\n<pre><code>function gppro_load_css() {\n    wp_enqueue_style( 'gppro-css', get_bloginfo('stylesheet_directory') . '\/gppro-custom.css', array(), null, 'all' );\n}\nadd_action ( 'wp_enqueue_scripts', 'gppro_load_css', 10 );\n<\/code><\/pre><\/dd>\n<dt><h3>I loaded the CSS file but nothing happens. Why?<\/h3><\/dt>\n<dd><p>The CSS data includes a custom body class <code>gppro-custom<\/code> that needs to be present for the browser to recognize it. Design Palette Pro does this automatically, but if you are loading the exported CSS file somewhere else you will need to add it yourself. You can put the below function in your theme.<\/p>\n\n<pre><code>function gpppro_body_class( $classes ) {\n    $classes[]  ### 'gppro-custom';\n\n    return $classes;\n}\nadd_filter ( 'body_class', 'gpppro_body_class' );\n<\/code><\/pre><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.1.1<\/h4>\n\n<ul>\n<li>WordPress Code Standard fixes. All under the hood changes.<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Updated to work with Design Palette Pro v1.4+<\/li>\n<\/ul>\n\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Updated UI markup to match core plugin changes<\/li>\n<li>Added 'view in browser' link<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Fixed bug with export button not displaying<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Adds a button to the Design Palette Pro settings tab to export a raw CSS file","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/snd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/27494","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/snd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/snd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/snd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=27494"}],"author":[{"embeddable":true,"href":"https:\/\/snd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/reaktivstudios"}],"wp:attachment":[{"href":"https:\/\/snd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=27494"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/snd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=27494"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/snd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=27494"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/snd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=27494"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/snd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=27494"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/snd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=27494"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}