If you are using Child Theme then just copy this function to Child Theme fucntions.php file and tweak it any way you want it and it will overwrite the original function.
if ( ! function_exists( 'dazzling_call_for_action' ) ) :
/**
* Call for action button & text area
*/
function dazzling_call_for_action() {
if ( is_front_page() && of_get_option('w2f_cfa_text')!=''){
echo '<div class="cfa">';
echo '<div class="container">';
echo '<div class="col-md-8">';
echo '<span class="cfa-text">'. of_get_option('w2f_cfa_text').'</span>';
echo '</div>';
echo '<div class="col-md-4">';
echo '<a class="btn btn-lg cfa-button" href="'. of_get_option('w2f_cfa_link'). '">'. of_get_option('w2f_cfa_button'). '</a>';
echo '</div>';
echo '</div>';
echo '</div>';
} else; {
//Do nothing
}
}
endif;
Thanks, but because I am a novice in wordpress and coding, I am quite not sure what should I write.
I want my image to be in the button section (I have removed the button with css styling), so I presume that the code should look something like this:
echo ‘<div class=”col-md-4″>’;
echo ‘<img src=”DON’T KNOW WHAT TO WRITE HERE”>’
echo ‘‘. of_get_option(‘w2f_cfa_button’). ‘‘;
echo ‘</div>’;
Maybe you can write the code for me, I will appreciate it very much, Thanks
Basic image code is like this:
<img src="http://colorlib.com/wp/wp-content/uploads/sites/2/colorlib-logo-top.png" alt="This text describes your image but is not visible">
The only thing you should do here is to replace my given URL with link to image you want to use.
Thanks a lot, that worked perfectly, I even changed the two columns (.col-mid-8 and .col-mid-4) to .col-mid-6 with that.
Great support and great theme, thanks