As i see your code in header.php and index.php looking messy (because of many if
conditions).
If i’m understanding your problem then i do it like this
- create separate author.php for both authors their name like
author-cait.php
andauthor-shannons.php
- Give link like
http://www.yousite.com/author/cait/
to button on static landing page.When user click on this,it takes him to author’s specificauthor.php
if exist - create custom header.php for both authors name like
header-cait.php
andheader-shannons.php
- create custom sidebar.php for both authors name like
sidebar-cait.php
andsidebar-shannons.php
- complete your code in author specific author.php for example
author-cait.php
contain only cait’s conditon,header and sidebar.
It makes your code looking beatiful,manageable, save from overloding of if
conditions.