• Hi there, if any of you want to disable the link as button style.

    file: crimson-rose/inc/template-functions.php

    Code to remove or comment (Line 228) :

    if ( preg_match_all( '/\<p.*?>\<a.*?\>\s*[^\<].*?\<\/a\><\/p\>/', $output, $matches ) ) {
    		foreach ( $matches as $match ) {
    			foreach ( $match as $html ) {
    				if ( ! preg_match( '/class\=\"|\'/', $html ) ) {
    					$search[]  = $html;
    					$replace[] = str_replace( '<a', '<a class="theme-generated-button button' . esc_attr( $button_class ) . '"', $html );
    				}
    			}
    		}
    	}

    Have fun.

  • The topic ‘Disable Link Button Style’ is closed to new replies.