• Hi everybody!

    I’ve been trying to change the link for the logo in my Architect theme. I can’t change it in the options menu of the theme or elsewhere, so I guess I should look for it somewhere in the header.php.

    Been looking for HOURS now in different PHP and CSS files and can’t seem to find it anywhere ??

    The adress of my website is: https://www.guesthouse-recover.com
    The logo links to https://www.guesthouse-recover.com/wordpress (which is a dead link)

    I guess it probably links there because the theme folder is placed in a folder inside the root

    I’d like to change the link to the website homepage or nowhere at all. Hope you guys can help me

    Here is the header.php code:

    <!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>
    	<meta charset="UTF-8">
    	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    
    	<?php $marker = get_field('google_map_marker', 'options');
    		if(isset($marker['url'])){
    			$marker = $marker['url'];
    		}
    	 ?>
    
    	<script>
            var template_directory = "<?php echo get_template_directory_uri(); ?>";
            var ajax_url = "<?php echo admin_url('admin-ajax.php'); ?>";
            var postId = "<?php echo (isset($post->ID)) ? $post->ID : 0 ; ?>";
            var marker_img = "<?php echo esc_url($marker);?>";
        </script>
    
    	<?php
    	if ( ! function_exists( '_wp_render_title_tag' ) ) {
    		function architect_render_title() {
    	?>
    	<title><?php wp_title( '|', true, 'right' ); ?></title>
    	<?php
    		}
    		add_action( 'wp_head', 'architect_render_title' );
    	}
    	?>
    
    	 <!-- Css -->
        <?php if(get_field('custom_css', 'options')){ ?>
        	<style>
        		<?php the_field('custom_css', 'options'); ?>
        	</style>
    	<?php } ?>
    
    	<?php wp_head(); ?>
    </head>
    <body <?php body_class(); ?> >
    
    	<!-- Loader -->
    	<?php if(get_field('enable_preloader', 'options')){ ?>
    	<div id="loader">
    		<div class="outer">
    			<div class="inner text-center middle">
    			<?php if($preload_logo = get_field('preloader_logo', 'options')){ ?>
    				<img src="<?php echo esc_url($preload_logo); ?>" alt="<?php bloginfo('name'); ?>" /><br>
    			<?php } ?>
    				<ul class='loader'>
    				  <li class='one' style="background: <?php the_field('one', 'options')?>"></li>
    				  <li class='two' style="background: <?php the_field('two', 'options')?>"></li>
    				  <li class='three' style="background: <?php the_field('three', 'options')?>"></li>
    				  <li class='four' style="background: <?php the_field('four', 'options')?>"></li>
    				  <li class='five' style="background: <?php the_field('five', 'options')?>"></li>
    				</ul>
    			</div>
    		</div>
    	</div>
    	<?php } ?>
    
    	<?php get_template_part('menu'); ?>
Viewing 9 replies - 1 through 9 (of 9 total)
  • Apologies for the blank comment earlier.

    Have you tried setting your site’s URL using the correct name? Within your Admin Panel, if you go to General / Settings and enter your site’s URL.

    Check out this page if you haven’t already: Giving WordPress its own directory

    As well if it’s not a directory issue, what theme are you using and can the logo and link be customised in the Options section of this theme?

    Thread Starter sjaakspaak

    (@sjaakspaak)

    Hi adeline,

    Thanks for your reply ?? When I installed WordPress, I did it the exact way “Giving WordPress its own directory” says.

    I installed WordPress in root/wordpress/ and changed my general settings to:

    – WordPress adress: https://www.guesthouse-recover.com/wordpress
    – Site adress: https://www.guesthouse-recover.com

    This is correct, right?

    I’m afraid that if I change it I will get the infamous blank screen and having to drop the database (I remember other websites doing this in the past)

    I also changed
    require( dirname( __FILE__ ) . '/wp-blog-header.php' );
    to
    require( dirname( __FILE__ ) . '/wordpress/wp-blog-header.php' );
    in the index.php in my root folder and created the .htaccess file in the root folder when I installed WordPress.

    Thread Starter sjaakspaak

    (@sjaakspaak)

    My permalinks structure is still: https://wwww.guesthouse-recover.com/%postname%/

    Should I perhaps change this to: https://wwww.guesthouse-recover.com/wordpress/%postname%/ ,or would this crash the entire thing? ??

    Hi,

    Your permalinks structure is fine. And you’ve gone through the steps of ‘giving its own directory’ from the documentation.

    What theme are you using and does it come with a customised options panel when you added your logo?

    Thread Starter sjaakspaak

    (@sjaakspaak)

    I use the Architect theme. It has an options panel for uploading a custom logo, which I did. But no option to change the link for it anywhere in the menu.

    Thread Starter sjaakspaak

    (@sjaakspaak)

    P.S. I changed the site adress back to https://www.guesthouse-recover.com/wordpress just to make it work for now. This is just a temporary fix though. I think it looks ugly and unprofessional to have ‘wordpress’ standing in the adress bar all the time.

    I totally understand having the /wordpress in the URL makes the site look amateurish.

    Is there a reason why your WordPress files can’t be at the root directory of your server?

    I also saw this page in the Codex section, Moving uploads folder or another option I can suggest is to contact the Theme creator for support.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Change logo link in Architect theme’ is closed to new replies.