(Wp-Pagenavi) How to give special colors to the buttons?

I’ve been trying to get help on this for days. I will elaborate the question. The plugin I use: https://wordpress.org/plugins/wp-pagenavi/ (There are clues to change CSS.)

Buttons generally work on two files:

wp-pagenavi.php

require_once dirname( __FILE__ ) . ‘/scb/load.php’;

function _pagenavi_init() {
load_plugin_textdomain( ‘wp-pagenavi’ );

require_once dirname( __FILE__ ) . ‘/core.php’;

$options = new scbOptions( ‘pagenavi_options’, __FILE__, array(
‘pages_text’ => __( ‘Page %CURRENT_PAGE% of %TOTAL_PAGES%’, ‘wp-pagenavi’ ),
‘current_text’ => ‘%PAGE_NUMBER%’,
‘page_text’ => ‘%PAGE_NUMBER%’,
‘first_text’ => __( ‘« First’, ‘wp-pagenavi’ ),
‘last_text’ => __( ‘Last »’, ‘wp-pagenavi’ ),
‘prev_text’ => __( ‘«’, ‘wp-pagenavi’ ),
‘next_text’ => __( ‘»’, ‘wp-pagenavi’ ),
‘dotleft_text’ => __( ‘…’, ‘wp-pagenavi’ ),
‘dotright_text’ => __( ‘…’, ‘wp-pagenavi’ ),
‘num_pages’ => 5,
‘num_larger_page_numbers’ => 3,
‘larger_page_numbers_multiple’ => 10,
‘always_show’ => false,
‘use_pagenavi_css’ => true,
‘style’ => 1,
) );

PageNavi_Core::init( $options );

if ( is_admin() ) {
require_once dirname( __FILE__ ) . ‘/admin.php’;
new PageNavi_Options_Page( __FILE__, $options );
} } scb_init( ‘_pagenavi_init’ );

And pagenavi-css.css

.wp-pagenavi {
clear: both;
}

.wp-pagenavi a, .wp-pagenavi span {
text-decoration: none;
border: 1px solid #BFBFBF;
padding: 3px 5px;
margin: 2px;
min-width: 75px;
height: 75px;
line-height: 75px;
font-size: 20px;

}
.wp-pagenavi a:hover, .wp-pagenavi span.current {
border-color: #000;
}
.wp-pagenavi span.current {
font-weight: bold; b
}

The description on the homepage of the plugin and the creation of some filters in the php file are mentioned. I am adding a filter to the Functions.Php file as specified in the description. And I add the following code to the css file of the plugin:

Read more here:: (Wp-Pagenavi) How to give special colors to the buttons?

Leave a Reply

Your email address will not be published. Required fields are marked *