This code sets the length of the excerpt to 20 words. You can adjust the number 20 to any other value to change the length …
Snippets for your wordpress site
wordpress snippet add login/logout button in header
This code adds a login/logout button to the primary menu of the site. If the user is logged in, the code adds a “Logout” link …
How to add code in wordpress header
To add code to the header of a WordPress site, you can use the wp_head() function, which is a WordPress action hook that is used …
WordPress snippet custom admin login – page Logo
Replace this link ‘https://wpsnippet.club/wp-content/uploads/2023/05/wpsnippetclub-logo.png’ with the url of your custom logo, and upload it to your sites media.
Mobile view not moving left – right full width
This code is commonly used in WordPress sites to ensure that the content within the HTML and body elements does not exceed the width of …
Copy the current page Url link button
The code bellow, adds a “copy page URL” button, which is a convenient feature that allows users to quickly copy the link of the current …
Scroll progress indicator for blog post
A scroll progress indicator is a visual cue on a webpage that shows how far a user has scrolled down a page. It’s typically a …
Current page QR code – popup
This snippet, displays a button, that when pressed it opens a popup that displays a QR code of the current page. This way, users can …
First you need to identify the menu item number, so right click in your site and open the inspector to find the item number. after …