TOB Posted December 22, 2015 Share Posted December 22, 2015 (edited) Hello everyone, As i said, I need help to change my website title. I use a wordpress and I have very few notions of php. I want to change the title of my website, because only the url appears. Here is my code, I believe that I have to change something here but i don't know where : <?php if( bi_get_data('custom_logo') !== '' ) { ?> <div id="logo"><a href="<?php echo home_url(); ?>/" rel="home"> <img src="<?php echo bi_get_data('custom_logo'); ?>" alt="<?php bloginfo( 'name' ) ?>" /> </a></div> <?php } else { ?> <?php if (is_front_page()) { ?> <a class="navbar-brand" href="<?php bloginfo( 'url' ) ?>/" title="<?php bloginfo( 'name' ) ?>" rel="homepage"><b><?php bloginfo( 'name' ) ?></b></a> <?php } else { ?> <a class="navbar-brand" href="<?php bloginfo( 'url' ) ?>/" title="<?php bloginfo( 'name' ) ?>" rel="homepage"><b><?php bloginfo( 'name' ) ?></b></a> <?php } } ?> </div> Thanks for your help. Edited December 22, 2015 by TOB Quote Link to comment Share on other sites More sharing options...
Muddy_Funster Posted December 22, 2015 Share Posted December 22, 2015 Hi and welcome to phpfreaks, you have posted in the wrong section though. That said, we need a little more context on the problem. What's actually wrong with the title? should it be displaying an image or custom text? Have you tried changing the settings from within the wordpress admin pages? if so what was the result Vs what was the desired result? What exactly are you looking to change the title to? Quote Link to comment Share on other sites More sharing options...
TOB Posted December 22, 2015 Author Share Posted December 22, 2015 I want to display custom text instead of website url. I tried to change the settings in admin page, but it doesn't work, the website url still appearing Quote Link to comment Share on other sites More sharing options...
Muddy_Funster Posted December 22, 2015 Share Posted December 22, 2015 I think you want to alter the database, rather than the script, as changing the script is likely to break things deeper in the application. Have a look through the db to see if you can establish where the blog_info('name') value is coming from and change that. 1 Quote Link to comment Share on other sites More sharing options...
QuickOldCar Posted December 22, 2015 Share Posted December 22, 2015 https://codex.wordpress.org/Changing_The_Site_URL Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.