Shape 5

Wordpress Club Themes => Charlestown - Club => : Jmathiesen June 06, 2016, 04:49:41 AM



: Link logo
: Jmathiesen June 06, 2016, 04:49:41 AM
Im using the theme plate charlestown - and trying to get a logo in the top menu. I can put a logo in the menu, but the link dosent work. I want the picture to link to my front page, but I can't. I edit in the appearance > menus >  then I my frontpage in the middle of all the points - put a picture and a link on it. Picture appears but it dont link to the frontpage.

Also the picture is being cut on a wrong place - you can see my whole logo, where can I fix the high on this?
see site: http://wp.b73.dk

Thanks


: Re: Link logo
: Tristan Rineer June 06, 2016, 02:08:26 PM
If you used a widget to add the logo to the menu, you need to follow the correct code structure:

:
<div id="s5_logo_wrap" class="s5_logo s5_logo_css">
<img alt="logo" src="http://wp.b73.dk/wp-content/uploads/2016/03/cropped-B73-slagelselogosort-kopi-e1463997398230.jpg" onclick="window.document.location.href='http://wp.b73.dk/'">
<div style="clear:both;" />
</div>

If you didn't use a widget, then most of that code should be there automatically, but it appears that it's missing; did you edit anything in the index.php file of the theme?



: Re: Link logo
: Jmathiesen June 08, 2016, 01:05:32 AM
I use a widget to add the logo, and I haven't changed anything in the codes:

In my index code the structure looks like this:

<?php if($s5_logo_type != "none") { ?>
            <div id="s5_logo_wrap" class="s5_logo s5_logo_<?php echo $s5_logo_type; ?>">
               <?php if ($s5_logo_type == "css") { ?>
                  <img alt="logo" src="<?php echo $s5_directory_path ?>/images/s5_logo.png" onclick="window.document.location.href='<?php echo $LiveSiteUrl; ?>'" />
               <?php } ?>
               <?php if ($s5_logo_type == "image") {
                  if(strrpos($s5_logo_image_file,"ttp://") > 0) { ?>
                     <img alt="logo" src="<?php echo $s5_logo_image_file; ?>" onclick="window.document.location.href='<?php echo $LiveSiteUrl ?>'" />
                  <?php } else { ?>
                     <img alt="logo" src="<?php echo $LiveSiteUrl; echo $s5_logo_image_file; ?>" onclick="window.document.location.href='<?php echo $LiveSiteUrl ?>'" />
                  <?php } ?>
               <?php } ?>
               <?php if ($s5_pos_logo == "published" && $s5_logo_type == "module") { ?>
                  <div id="s5_logo_text_wrap">
                     <?php s5_module_call('logo','notitle'); ?>
                     <div style="clear:both;"></div>
                  </div>

I'm not very experienced in these codes, so I dont know where it turns out wrong.


: Re: Link logo
: Tristan Rineer June 08, 2016, 12:13:06 PM
If you haven't changed any code in the index.php file of the theme, it would be best for it to stay unchanged.

The best option with the logo is always to replace the {themedir}/images/s5_logo.png file with an identical sized version of your new logo.  If you use this method, you'll need to change the logo setting to "Default" on the "Main -> Logo" tab of the theme options.