WordPress Tricks

Free WordPress based website for your pet Dogs or Cats

Here I am sharing you a free demo wordpress website which you can use to create your own website for your pet dogs or cats.

Basically it depends on your passion or love for your pet.

The theme which I used here is free theme Blogus. Please Download Pet Dogs/Cats free WordPress based website. You will need to use All in One Migration plugins to install/use this website. If you face any issue, feel free to contact me at prakash02cuet@gmail.com

Here is how the pages may be looked

Continue reading “Free WordPress based website for your pet Dogs or Cats”
Web Development, WordPress Tricks

Show payment gateway logo in your website

If you want to show apple, gpay, paypal, venmo, discover, afterpay ,visa ,mastercard, american express, payment gateway logo in your website , then you can use my provided html and css code to show them like this ( screenshot below) . Code is provided below. If you have any issue feel free to comments or contact with me at prakash02cuet@gmail.com

Continue reading “Show payment gateway logo in your website”
WordPress Tricks

How to show posts from one wordpress website to another one without importing posts: Rest API and Shortcode

Can you Show posts from one wordpress website to another one without importing the posts?

Yes you can do it using REST API. Just you need to enable REST API of the site which posts you want to show.

I am sharing you a demo code to make you understand how you can code it ( it is a demo code, you need to modify it based on the fields which REST API url is providing) .

Continue reading “How to show posts from one wordpress website to another one without importing posts: Rest API and Shortcode”
WordPress Tricks

wp_actionscheduler_logs Huge size issue and how to solve this

** If the code shared below don’t work, then you can clear the table as per the screenshot i shared below

The database table becomes huge, it may be using either any SEO or Cache plugins ( my guess) you can see the size in the screenshot below, you can clear it as per the screenshot

wp_actionscheduler_logs Huge size issue and how to solve this

also one.com provides this code which should clear the table within 7 days ( which was 30 days by default)

add_filter( 'action_scheduler_retention_period', 'onecom_action_scheduler_purge' );
/**
* Change Action Scheduler default purge to 1 week
*/
function onecom_action_scheduler_purge() {
return 604800;
}

you need to put this above code in function.php ( screenshot below)

wp_actionscheduler_logs Huge size issue and how to solve this function php
WordPress Tricks

How to redirect Author Page URL to Different Page

Change Author Link or Redirect Author URL to different page

Sometimes you may need to change default author url to different page. Here I am sharing you the code which you can use without modifying the theme file.


function modify_author_posts_url( $author_posts_url, $author_id ) {
  // modify the URL here
  $author_posts_url = 'https://www.example.com/';
  return $author_posts_url;
}
add_filter( 'author_link', 'modify_author_posts_url', 10, 2 );

You can use Code Snippet plugins to use the code, here is the screenshot about how you can use the code.

Change Author Link or Redirect Author URL to different page  using Code Snippet
WordPress Tricks

Free Yoga based WordPress Site: Modification of Header, footer, menu, sidebar, author, category and more.

If you are a Yoga instructor and trying to create your website, here is your solution. Here I have shown in a video (4minutes) how you can create your initial Yoga Teaching site for free and how u can set up the site. Also I have shared css codes to modify it

You can see Demo here.

Here is the OceanWP TheAme.

Continue reading “Free Yoga based WordPress Site: Modification of Header, footer, menu, sidebar, author, category and more.”
WordPress Tricks

In elementor font family is used var( –e-global-typography-primary-font-family ) how to change this font?

To change the font family in Elementor, you can do the following:

  1. Go to the Elementor editor for the page or template where you want to change the font family.
  2. Click on the hamburger menu icon in the top left corner to open the Global Settings.
  3. Go to the Typography tab.
  4. Under the Primary Font section, you will see the option to change the font family.
  5. You can either choose a font from the dropdown menu or enter the name of a custom font you want to use.
  6. Click on the Save button and the new font family will be applied to all elements on your page that use the primary font.
WordPress Tricks

Yoast breadcrumb add Product or any Text with links just after Home text

yoast breadcrumb add Product or any Text with links just after Home text

Please add the following code to your theme’s function.php

add_filter( 'wpseo_breadcrumb_links', 'yoast_seo_breadcrumb_add_link' );

function yoast_seo_breadcrumb_add_link( $links ) {
    global $post;

    
        $breadcrumb[] = array(
            'url' => site_url( '/products/' ),
            'text' => 'Products',
        );
 
        array_splice( $links, 1, 0, $breadcrumb );
     

    return $links;
}
WordPress Tricks

Click on Link and Scroll to ID: Fix Overlapping issue of top fixed header

Sometimes you face issue where Top fixed header overlap the portion of the Target. To fix the issue you can use this jquery code. You need to have good understanding about how to use it. Or do a comments if you need help

You need to change the Parent Element ID or Class in the provided code

 jQuery('Parent Element ID or Class').on('click', 'a', function(e){
		   e.preventDefault();
		   e.stopImmediatePropagation();
	var id=	jQuery(this).attr('href');
		 console.log(id);
 jQuery('html,body').animate({scrollTop: jQuery(id).offset().top -180},'slow');
	   });