Home / Admin / Gravity Forms: Add Custom CSS Buttons to GravityWP CSS Ready Classes Plugin
Duplicate Snippet

Embed Snippet on Your Site

Gravity Forms: Add Custom CSS Buttons to GravityWP CSS Ready Classes Plugin

Add custom CSS: quick buttons and accordion at the top of the GravityWP - CSS Selector modal. Prerequisite: GravityWP CSS Ready Classes Plugin
Dax Davis
<10
Code Preview
php
<?php
// Add custom css: quick buttons and accordion at the top of the GravityWP - CSS Selector modal
function my_custom_gwp_css_selector_add_css() {
$html .= "<!-- <div class='gwp_quick_links'>
    <a class='gwp_css_link' href='#' rel='css_class' title='Insert css_class'>Custom CSS</a>
    <a class='gwp_css_link' href='#' rel='css_class_2' title='Insert css_class_2'>2nd Custom CSS</a></div> -->
<li>
  <a class='gwp_css_acc_link' href='#'>Custom CSS</a>
  <div class='gwp_css_accordian'>
    <a class='gwp_css_link' href='#' rel='gf_section_field_small90' title='Insert gf_section_field_small90'>Section Font Smaller (90%)</a>
    <a class='gwp_css_link' href='#' rel='gf_section_field_small75' title='Insert gf_section_field_small75'>Section Font Smaller (75%)</a>
  </div>
</li>
<li>
  <a class='gwp_css_acc_link' href='#'>Gravity PDF</a>
  <div class='gwp_css_accordian'>
    <a class='gwp_css_link' href='#' rel='pagebreak' title='Insert pagebreak'>GravityPDF Page Break</a>
    <a class='gwp_css_link' href='#' rel='exclude' title='Insert exclude'>GravityPDF Exclude Field</a>
  </div>
</li>";
return $html;
}
add_filter( 'gwp_css_selector_add_custom_css', 'my_custom_gwp_css_selector_add_css' );

Comments

Add a Comment