by

Add class to .content in Genesis

Add class to .content in Genesis: 
add_genesis_content_class.php
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/152962/Add-class-to--content-in-Genesis?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
<?php //* Add class to .content add_filter( 'genesis_attr_content', 'beatm_facetwp_class' ); function beatm_facetwp_class( $attributes ) { $attributes['class'] = $attributes['class']. ' facetwp-template'; return $attributes; }
If you want to be updated about similar snippets, Sign in and follow our Channels