Thanks! I did get it to work after all. It was an error on my part.
I also am trying to change the text “Leave a Reply” and add a picture there. Could you tell me how to do this?
Thanks! I did get it to work after all. It was an error on my part.
I also am trying to change the text “Leave a Reply” and add a picture there. Could you tell me how to do this?
What is the code to remove the links from the Author and Date in each post? I assume I add this to my Child Functions.php?
Removed
No need to edit anything inside code to make Author and Date unclickable. You can get this done by simple CSS trick:
.entry-meta .date,
.entry-meta .author {
pointer-events: none;
}
You can add this to Child Theme style.css or inside Theme Options – Other – Custom CSS.
To change “Leave a Replay” you have to overwrite default text which is generated by WordPress itself.
You can do it my simply adding
function comment_reform ($arg) {
$arg['title_reply'] = __('Your text goes here:');
return $arg;
}
add_filter(‘comment_form_defaults’,‘comment_reform’);
To your Child Theme functions.php file.
That I have in Child Theme style.css or inside Theme Options – Other – Custom CSS
.searchform {
height: 30px;
z-index: 100;
float: right;
margin-top: 85px;
margin-right: 27px;
margin-left: -165px;
}
#branding input.s {
border: 1px solid #D0D0D0;
width: 120px;
text-indent: 10px;
padding-left: 10px;
}
#branding {
margin-top: 12px
}
function comment_reform ($arg) {
$arg['title_reply'] = __('Comment:');
return $arg;
}
In my Child Theme functions.php file i have this:
<?php
/*
* Custom functions that overwrites original Travelify functionality
*/
add_action( 'wp_enqueue_scripts', 'travelify_enqueue_styles' );
function travelify_enqueue_styles() {
wp_enqueue_style( 'travelify-parent-style', get_template_directory_uri() . '/style.css' );
}
// Custom Search in header via Child Theme functions.php
add_action( 'travelify_header', 'my_custom_search' , 5 );
function my_custom_search() {
get_search_form();
}
function crunchify_disable_comment_url($fields) {
unset($fields['url']);
return $fields;
}
add_filter('comment_form_default_fields','crunchify_disable_comment_url');
add_filter(‘comment_form_defaults’,’comment_reform’);
?>
Do not nothing appears. Why not work?