Read More Text to Button

      No Comments on Read More Text to Button

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

<?php
/*
Plugin Name:   dd Read More Text To Button
Plugin URI:    hhttps://donalddeleeuw.com/portfolio/wp-plugins/dd-read-more-text-to-button/
Description:   Adds custom CSS to turn the more-link class into a button
Version:       1.0
Author:        Donald DeLeeuw
Author URI:    https://donalddeleeuw.com/portfolio/wp-plugins/
*/

function custom_css_enqueue_read_more() {

    /* enqueue the custom-style.css file */
    wp_enqueue_style( 'custom-css', plugins_url( '/css/more-link.css', __FILE__ ), $ver = false );
  
}
add_action( 'wp_enqueue_scripts', 'custom_css_enqueue_read_more' );
.post-content p {
   margin-bottom: 15px;
}

.more-link {
   background-color: #666666;
   color: #ffffff;
   padding: 5px 15px;
   border-radius: 10px;
   text-transform: uppercase;
}

.more-link:hover {
   background-color: #111111;
}

.more-link:hover::after {
   content: " >";
}