- This topic has 10 replies, 2 voices, and was last updated 3 years, 6 months ago by Tom.
-
AuthorPosts
-
January 18, 2020 at 10:12 am #1136251Fajri
Hi, How to change Page Numbering Text to Button Text?
my site : https://koneksia.com
January 18, 2020 at 10:23 am #1136263LeoStaffCustomer SupportHi there,
Something like this?
.page-numbers { border: 1px solid #000; padding: 5px; }
Adding CSS: https://docs.generatepress.com/article/adding-css/
January 20, 2020 at 8:55 pm #1138619FajriNo, i mean like site library style.
Like this : https://prnt.sc/qqkeyq
my site : https://ngetricks.comJanuary 20, 2020 at 10:08 pm #1138632AmitI want to add the blue colour inside the buttons and shadow outside the buttons and text in white colour. How can I do that??
January 21, 2020 at 5:24 am #1138971DavidStaffCustomer SupportHi there,
you can use this CSS for styling your Pages Nav:
/* Center Navigation */ #nav-below { text-align: center; } /* Page Number styling */ #nav-below .page-numbers:not(.dots) { background-color: #fff; color: #000; border: 1px solid #000; padding: 5px 15px; box-sizing: border-box; line-height: 30px; text-align: center; } /* Change current and hover colors */ #nav-below .page-numbers:not(.dots):hover, #nav-below .page-numbers.current { background-color: #333; color: #fff; border: 1px solid #333; } /* increase width of dots.... */ #nav-below .page-numbers.dots { display: inline-block; min-width: 40px; }
Simply adjust the Background, color and border colors to suit your needs.
January 21, 2020 at 9:14 am #1139399AmitSo the final code is
.page-numbers {
border: 1px solid #000;
padding: 5px;
}/* Center Navigation */
#nav-below {
text-align: center;
}/* Page Number styling */
#nav-below .page-numbers:not(.dots) {
background-color: #fff;
color: #000;
border: 1px solid #000;
padding: 5px 15px;
box-sizing: border-box;
line-height: 30px;
text-align: center;
}/* Change current and hover colors */
#nav-below .page-numbers:not(.dots):hover,
#nav-below .page-numbers.current {
background-color: #333;
color: #fff;
border: 1px solid #333;
}/* increase width of dots…. */
#nav-below .page-numbers.dots {
display: inline-block;
min-width: 40px;
}January 21, 2020 at 11:58 am #1139550DavidStaffCustomer SupportJust the code provided here:
January 22, 2020 at 9:11 am #1140519AmitHey,
1. colour codes are 6 digits but use 3 digit codes here. I am a little confused. Would you please clear this?2. I want to use Blue as a selected navigation colour instead of Black. Give me that code.
January 22, 2020 at 9:19 am #1140533DavidStaffCustomer Support1. Example:
#333 = #333333
or#fff = #ffffff
2. In this part of the code you change the line i have commented:
/* Change current and hover colors */ #nav-below .page-numbers:not(.dots):hover, #nav-below .page-numbers.current { background-color: #333; /* Change this hex code */ color: #fff; border: 1px solid #333; }
October 19, 2020 at 10:04 am #1495903AlexandruHi, David,
Just used the CSS and the result it’s not quite a success. Please help me with this one. Example here: http://suntcalm.com/niste-durere/
October 19, 2020 at 1:20 pm #1496175TomLead DeveloperLead DeveloperHi there,
This topic is for the archive pages number, not the single posts.
Can you open a new topic and include an example of what you’re trying to achieve?
Thanks!
-
AuthorPosts
- You must be logged in to reply to this topic.