Title: redski05's Replies | WordPress.org

---

# redski05

  [  ](https://wordpress.org/support/users/redski05/)

 *   [Profile](https://wordpress.org/support/users/redski05/)
 *   [Topics Started](https://wordpress.org/support/users/redski05/topics/)
 *   [Replies Created](https://wordpress.org/support/users/redski05/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/redski05/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/redski05/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/redski05/engagements/)
 *   [Favorites](https://wordpress.org/support/users/redski05/favorites/)

 Search replies:

## Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Find text in URL and change text and header image accordingly.](https://wordpress.org/support/topic/find-text-in-url-and-change-text-and-header-image-accordingly/)
 *  Thread Starter [redski05](https://wordpress.org/support/users/redski05/)
 * (@redski05)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/find-text-in-url-and-change-text-and-header-image-accordingly/#post-6780953)
 * Found half an answer myself.
    Still unsure about security though. and still working
   on the header image being dynamic with the weaver extreme theme.
 * note: northside.com and sunshine.com are fictional and used as example only.
 * //[companyname]
 * function whichname(){
    $domain_name = $_SERVER[‘SERVER_NAME’]; //return $domain_name;
   if( $domain_name == ‘northsidee.com’) return ‘ Northside comany name’; elseif(
   $domain_name == ‘sunshine.com’) return ‘Sunshine company name’; else return ‘
   not found’;//if not sunshin or northside return this string. }
 * add_shortcode(‘companyname’,’whichname’);
 * The above placed in functions.php of the theme in use.
 * in the actual page/post use the short code
    [companyname]
 * which will display the correct business name according to the domain url.
 * The other half of my question not yet resolved:
 * Now how to change the header image in a similar way.
    Will post result when I
   figure it out – takes me time but I do get there eventually.
 * Redski
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Find text in URL and change text and header image accordingly.](https://wordpress.org/support/topic/find-text-in-url-and-change-text-and-header-image-accordingly/)
 *  Thread Starter [redski05](https://wordpress.org/support/users/redski05/)
 * (@redski05)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/find-text-in-url-and-change-text-and-header-image-accordingly/#post-6780796)
 * Easier said that done, do not know js well and get lost on sytax problems that
   take me hours to sort out.
 * Have you got an example?

Viewing 2 replies - 1 through 2 (of 2 total)