0
Welcome Guest! Login
0 items Join Now

how to cancel link of logo in homepage?

  • how to cancel link of logo in homepage?

    Posted 12 years 11 months ago
    • how do i cancel the link when clicking on the logo in homepage.

      i want to keep the default logo in header-a position, but wihout linking.

      cheers
    • Ben Simon's Avatar
    • Ben Simon
    • Elite Rocketeer
    • Posts: 4301
    • Thanks: 8
    • Full-time web developer

    Re: how to cancel link of logo in homepage?

    Posted 12 years 11 months ago
    • Depends what template you're using but generally you can find this file: /templates/template_name/features/logo.php and look for this code:
      <a href="<?php echo $gantry->baseUrl; ?>" id="rt-logo"><span id="logo-icon"></span><span id="logo-inner"></span></a>
      Remove everything but this:
      <span id="logo-icon"></span><span id="logo-inner"></span>
    • B e courteous to staff and members that volunteer their time helping you
      E ssential Tool - FireBug
      N ever assume I know what version you're talking about

      S earch the forum for a solution first
      I nclude a link to the problem
      M ark your resolved issues as [SOLVED]
      O nly PM moderators if they request it first
      N o...
  • Re: how to cancel link of logo in homepage?

    Posted 12 years 11 months ago
    • hi there,

      i tried to do as you told me, but the entire logo gets away.

      here's the code:

      <div class="rt-block logo-block">
      <?php if ($gantry->get('logo-centered') == '1'): ?>
      <div class="centered">
      <?php endif; ?>
      <a href="<?php echo $gantry->baseUrl; ?>" id="rt-logo"></a>
      <?php if ($gantry->get('logo-centered') == '1'): ?>
      </div>
      <?php endif; ?>
      </div>
      <?php
      return ob_get_clean();

      i just cancelled this:

      <a href="<?php echo $gantry->baseUrl; ?>" id="rt-logo"></a>


      thanks.
    • Ben Simon's Avatar
    • Ben Simon
    • Elite Rocketeer
    • Posts: 4301
    • Thanks: 8
    • Full-time web developer

    Re: how to cancel link of logo in homepage?

    Posted 12 years 11 months ago
    • Hi,

      Try this:
                  <div class="rt-block logo-block">
                      <?php if ($gantry->get('logo-centered') == '1'): ?>
                      <div class="centered">
                      <?php endif; ?>
                          <span id="rt-logo"></span>
                      <?php if ($gantry->get('logo-centered') == '1'): ?>
                      </div>
                      <?php endif; ?>
                  </div>
              <?php
              return ob_get_clean();
    • B e courteous to staff and members that volunteer their time helping you
      E ssential Tool - FireBug
      N ever assume I know what version you're talking about

      S earch the forum for a solution first
      I nclude a link to the problem
      M ark your resolved issues as [SOLVED]
      O nly PM moderators if they request it first
      N o...

Time to create page: 0.069 seconds