How to add condition is author archive on oxygen archive page

Control the output of elements on archive pages based on the author archive

Here’s How

Install and activate Code Snippets plugin.

Go to Snippets > Add New.

Title: Condition Author Archive Type

Code Screenshot and code:

<?php 
function check_archive_page(){
    if( is_author() == true){
      return 1;
    }
}
?>

Condition Screenshot in Archive page

If you can any query feel free connect on my FB page https://www.facebook.com/wploversteam/

// newsletter

Three tested WordPress snippets a week

Blocks, security, performance, Tailwind, PHP and React. Copy, paste, ship. You’ll also get DPlugins product updates. No spam, and you can unsubscribe anytime.

// newsletter

Three tested WordPress snippets a week

Blocks, security, performance, Tailwind, PHP and React. Copy, paste, ship. You'll also get DPlugins product updates. No spam, and you can unsubscribe anytime.

Click to Copy