GNU/Linux | Homebrew designs | Perl | Ruby | Administration | Backup/Recovery | Bugs/Fixes | Certification | Database | Email | File/Print | Hardware | Information Grab Bag | Interoperability | GNU/Linux ABCs | Monitoring | Name Resolution | Network Services | Networking | Remote Control | Security | Desktop | Web | BSD | Solaris | GIAGD | ERP | REALbasic

Last 30 Days | Last 60 Days | Last 90 Days | All Articles | RSS

·Homebrew designs
·Information Grab Bag
·GNU/Linux ABCs
·Name Resolution
·Network Services
·Remote Control
·All Categories

Adding Hostname to Wordpress
Topic:Web   Date: 2012-09-22
Printer Friendly: Print   Mobile View: mobile

<<  <   >  >>


We often move our Wordpress install around to different machines, and wanted to know what host the Wordpress install serving the page was. We are using the mon-caheir theme, as part of MCJ, but this should work similarly with other themes.

Edit wordpress/wp-content/themes/mon-cahier/header.php, find the line that contains site-description, and change it so it looks like this:

<h2 class="site-description"><?php bloginfo( 'description' ); ?> - <?php echo gethostname(); ?></h2>

Now we see the hostname after the blog description:


Finding Files Over a Certain Size
Backing up WordPress via Import/Export
Split Large Files Into Smaller Pieces

Please read our Terms of Use and our Privacy Policy
Microsoft, Windows, Windows Server are either trademarks or registered trademarks of Microsoft Corporation. is not affiliated with Microsoft Corporation. Linux is a registered trademark of Linus Torvalds, and refers to the Linux kernel. The operating system of most distributions that contain the Linux kernel is GNU/Linux. All logos and trademarks in this site are property of their respective owner. Copyright 1997-2013