Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • smartmax Friend
    #203263

    Hi guys,

    A SEO specialist advised that the <H1> code should be removed from the title/logo.

    http://www.applicatietechniekvanderwal.nl/

    <h1>
    <a href=”/” title=”Applicatietechniek van der Wal B.V.” style=”background-image:url(/images/logo.png);”>
    <span>Applicatietechniek van der Wal B.V.</span>
    </a>
    <small class=”site-slogan hidden-phone”>Applicatietechniek van der Wal, partner in kunststofvloeren, bedrijfsvloeren en industrievloeren.</small>
    </h1>

    Can anybody advise me where I can do this without messing up the template :-[

    Many thanks!

    chavan Friend
    #557406

    It would be in tpls/blocks/header.php

    smartmax Friend
    #558707

    No, that’s not it, now the logo is gone….! :((

    “Can anybody advise me where I can do this without messing up the template

    Many thanks! “


    1. Schermafbeelding-2014-12-15-om-15.37.37
    pavit Moderator
    #558717

    Hi @smartmax

    As Chavan said above you should edit php file named header.php inside folder templatesja_mitiustplsblocks

    starting from line 22 logo is coded in this way

    <!-- LOGO -->
    <div class="span8">
    <div class="logo logo-<?php echo $logotype, ($logoimgsm ? ' logo-control' : '') ?>">
    <h1>
    <a href="<?php echo JURI::base(true) ?>" title="<?php echo strip_tags($sitename) ?>">
    <?php if($logotype == 'image'): ?>
    <img class="logo-img" src="<?php echo JURI::base(true) . '/' . $logoimage ?>" alt="<?php echo strip_tags($sitename) ?>" />
    <?php endif ?>
    <?php if($logoimgsm) : ?>
    <img class="logo-img-sm visible-phone visible-tablet" src="<?php echo JURI::base(true) . '/' . $logoimgsm ?>" alt="<?php echo strip_tags($sitename) ?>" />
    <?php endif ?>
    </a>
    <small class="site-slogan hidden-phone"><?php echo $slogan ?></small>
    </h1>
    </div>
    </div>
    <!-- //LOGO -->

    So you should only remove the <h1> and </h1> tags

    smartmax Friend
    #558779

    Hi Pavit, thank you for you’re answer, But I did that and it removes the complete logo(?)

    <?php
    /**
    * @package T3 Blank
    * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
    * @license GNU General Public License version 2 or later; see LICENSE.txt
    */

    defined('_JEXEC') or die;
    $sitename = $this->params->get('sitename') ? $this->params->get('sitename') : JFactory::getConfig()->get('sitename');
    $slogan = $this->params->get('slogan');
    $logotype = $this->params->get('logotype', 'text');
    $logoimage = $logotype == 'image' ? $this->params->get('logoimage', '') : '';
    if ($logoimage) {
    $logoimage = ' style="background-image:url('.JURI::base(true).'/'.$logoimage.');"';
    }
    ?>

    <!-- HEADER -->
    <header id="ja-header" class="ja-header wrap">
    <div class="container">
    <div class="row">

    <!-- LOGO -->
    <div class="span4">
    <div class="logo logo-<?php echo $logotype ?>">

    <a href="<?php echo JURI::base(true) ?>" title="<?php echo strip_tags($sitename) ?>"<?php echo $logoimage ?>>
    <span><?php echo $sitename ?></span>
    </a>
    <small class="site-slogan hidden-phone"><?php echo $slogan ?></small>

    </div>
    </div>
    <!-- //LOGO -->

    <div class="span8">
    <?php if ($this->countModules('new_position')): ?>

    <jdoc:include type="modules" name="<?php $this->_p('new_position') ?>" style="T3Xhtml" />

    <?php endif; ?>
    </div>
    </div>

    </div>
    </header>
    <!-- //HEADER -->

    smartmax Friend
    #558780

    logo is ‘gone’ again…


    1. Schermafbeelding-2014-12-16-om-08.37.00
    jooservices Friend
    #558784

    Hi there,
    It’s basic logical here.
    Pavit gave you file and code


    <!-- LOGO -->
    <div class="span8">
    <div class="logo logo-<?php echo $logotype, ($logoimgsm ? ' logo-control' : '') ?>">
    <h1>
    <a href="<?php echo JURI::base(true) ?>" title="<?php echo strip_tags($sitename) ?>">
    <?php if($logotype == 'image'): ?>
    <img class="logo-img" src="<?php echo JURI::base(true) . '/' . $logoimage ?>" alt="<?php echo strip_tags($sitename) ?>" />
    <?php endif ?>
    <?php if($logoimgsm) : ?>
    <img class="logo-img-sm visible-phone visible-tablet" src="<?php echo JURI::base(true) . '/' . $logoimgsm ?>" alt="<?php echo strip_tags($sitename) ?>" />
    <?php endif ?>
    </a>
    <small class="site-slogan hidden-phone"><?php echo $slogan ?></small>
    </h1>
    </div>
    </div>
    <!-- //LOGO -->

    You can remove H1 or REPLACE H1 as your needed . It does not mean you remove all of rest code.

    Thank you,
    Viet Vu

    smartmax Friend
    #558789

    I didn’t remove the complete code!

    I removed only the </H1> code as you can see above…

    I even replaced it with </H3> for a test, but that didn’t work either, the complete logo was gone…

    jooservices Friend
    #558793

    Hi there,
    As your prev replied with code. I saw you have completely remove logo code
    Please check below code
    Here is original from header.php


    <?php
    /**
    * @package T3 Blank
    * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
    * @license GNU General Public License version 2 or later; see LICENSE.txt
    */

    defined('_JEXEC') or die;
    $sitename = $this->params->get('sitename');
    $slogan = $this->params->get('slogan', '');
    $logotype = $this->params->get('logotype', 'text');
    $logoimage = $logotype == 'image' ? $this->params->get('logoimage', 'templates/' . T3_TEMPLATE . '/images/logo.png') : '';
    $logoimgsm = ($logotype == 'image' && $this->params->get('enable_logoimage_sm', 0)) ? $this->params->get('logoimage_sm', '') : false;

    ?>

    <!-- HEADER -->
    <header id="ja-header" class="ja-header wrap">
    <div class="container">
    <div class="row">

    <!-- LOGO -->
    <div class="span8">
    <div class="logo logo-<?php echo $logotype, ($logoimgsm ? ' logo-control' : '') ?>">
    <h1>
    <a href="<?php echo JURI::base(true) ?>" title="<?php echo strip_tags($sitename) ?>">
    <?php if($logotype == 'image'): ?>
    <img class="logo-img" src="<?php echo JURI::base(true) . '/' . $logoimage ?>" alt="<?php echo strip_tags($sitename) ?>" />
    <?php endif ?>
    <?php if($logoimgsm) : ?>
    <img class="logo-img-sm visible-phone visible-tablet" src="<?php echo JURI::base(true) . '/' . $logoimgsm ?>" alt="<?php echo strip_tags($sitename) ?>" />
    <?php endif ?>
    </a>
    <small class="site-slogan hidden-phone"><?php echo $slogan ?></small>
    </h1>
    </div>
    </div>
    <!-- //LOGO -->

    <div class="span4">

    </div>
    </div>

    </div>
    </header>
    <!-- //HEADER -->


    You want to remove H1 than it should be


    <?php
    /**
    * @package T3 Blank
    * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
    * @license GNU General Public License version 2 or later; see LICENSE.txt
    */

    defined('_JEXEC') or die;
    $sitename = $this->params->get('sitename');
    $slogan = $this->params->get('slogan', '');
    $logotype = $this->params->get('logotype', 'text');
    $logoimage = $logotype == 'image' ? $this->params->get('logoimage', 'templates/' . T3_TEMPLATE . '/images/logo.png') : '';
    $logoimgsm = ($logotype == 'image' && $this->params->get('enable_logoimage_sm', 0)) ? $this->params->get('logoimage_sm', '') : false;

    ?>

    <!-- HEADER -->
    <header id="ja-header" class="ja-header wrap">
    <div class="container">
    <div class="row">

    <!-- LOGO -->
    <div class="span8">
    <div class="logo logo-<?php echo $logotype, ($logoimgsm ? ' logo-control' : '') ?>">
    <!-- H1 removed -->
    <a href="<?php echo JURI::base(true) ?>" title="<?php echo strip_tags($sitename) ?>">
    <?php if($logotype == 'image'): ?>
    <img class="logo-img" src="<?php echo JURI::base(true) . '/' . $logoimage ?>" alt="<?php echo strip_tags($sitename) ?>" />
    <?php endif ?>
    <?php if($logoimgsm) : ?>
    <img class="logo-img-sm visible-phone visible-tablet" src="<?php echo JURI::base(true) . '/' . $logoimgsm ?>" alt="<?php echo strip_tags($sitename) ?>" />
    <?php endif ?>
    </a>
    <small class="site-slogan hidden-phone"><?php echo $slogan ?></small>
    <!-- H1 removed -->
    </div>
    </div>
    <!-- //LOGO -->

    <div class="span4">

    </div>
    </div>

    </div>
    </header>
    <!-- //HEADER -->

    Thank you,
    Viet Vu

    smartmax Friend
    #560826

    Hi Viet Vu,

    I have lost track on this ‘problem’, but the problem still remains that it shows 2 logos now(?)

    I still could use help on this matter :-[

    http://www.applicatietechniekvanderwal.nl

    There is no logo-image selected in the template

    Many thanks in advance!


    1. Schermafbeelding-2015-02-26-om-15.09.12
    2. Schermafbeelding-2015-02-26-om-15.12.01
    jooservices Friend
    #561052

    Hi there
    # Please let me know exactly what do you need and provide me your FTP access. I’ll help you directly work on it.

    Thank you,
    Viet Vu

Viewing 11 posts - 1 through 11 (of 11 total)

This topic contains 11 replies, has 4 voices, and was last updated by  jooservices 9 years, 8 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum