Are you trying to add the custom CSS class into WP Fluent Form’s <form> HTML markup? You can easily do it without editing the code plugin. There have a filter fluentform_form_class to add the custom class into <form> tag. I am sharing the PHP snippet at below. You will put it into functions.php file of… Continue Reading
css
Adding CSS Class name to Post Tags
1 2 3 4 5 6 7 8 9 10 11 12 |
add_filter( 'term_links-post_tag', 'paulc_add_custom_class' ); function paulc_add_custom_class( $links ) { $new_links = array(); foreach ( $links as $link ) { preg_match( "|<a.*[^>]*>([^<]*)</a>|i", $link, $matches ); $class = strtolower( $matches[1] ); $link = str_replace( 'rel="tag"', 'class="' . str_replace( " ", "-", $class ) . '" rel="tag"', $link ); $new_links[] = $link; } return $new_links; } |
Simply add the above code into the functions.php file of your active theme. It will add the tag slug to class parameter of anchor tag.
Center Header Logo & Menu in Winning Agent PRO Theme
Currently Winning Agent PRO Theme is very popular for Real State site. I worked in one project and my client was wanting to center the logo & menu at Header. I did this by following tweaks
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
.title-area { float: left; padding: 12px 0; width: 100%; } .header-image .site-title a { background-position: center center !important; } .site-header .widget-area { clear: both; display: table; margin: 0 auto; text-align: center; width: 100%; } |
I added code in style.css file