1. How do I remove the white blog section from this page?

2. How do I remove phone number?

3. What file contains the header code? I want to add javascript for a tracking pixel and need to insert it into the header but can't figure out which file to use?

Thanks for your help with this?
In Themes
Tuesday, September 05 2017, 10:58 AM
Share this post:
Responses (3)
  • Accepted Answer

    Tuesday, September 05 2017, 11:00 AM - #Permalink
    Here is a picture to better help explain what I want to change. Thanks.
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, September 05 2017, 02:39 PM - #Permalink
    First of, the documentation is where you should start. Reading it will save you quite some time and postings.

    Start here: https://arastta.org/docs

    1. The "white blog section" is your main menu, delete the "Blog" menu item to remove it: https://arastta.org/docs/user-manual/appearance/menus

    2. Remove it from your settings, or edit the header.tpl
    - https://arastta.org/docs/user-manual/system/settings/general
    - https://arastta.org/docs/developers/mvc-structure

    3. header.tpl: https://github.com/arastta/arastta/blob/master/catalog/view/theme/second/template/common/header.tpl
    The reply is currently minimized Show
  • Accepted Answer

    Hackasacka
    Hackasacka
    Offline
    Wednesday, September 06 2017, 07:03 PM - #Permalink
    Hi Joe,

    The white blog section is contained in the header.tpl navigation for the particular template you are using if it exists or in the default template i.e. /catalog/view/theme/default/template/header.tpl or /catalog/view/second/default/template/header.tpl.

    <?php if ($categories) { ?>
    <nav id="menu" class="navbar">


    The phone numbers are in the header.tpl on line 99 or 91 respectively.

    <li><a href="/<?php echo $contact; ?>"><i class="fa fa-phone"></i></a> <span class="hidden-xs hidden-sm hidden-md"><?php echo $telephone; ?></span></li>


    So you can either modify or remove it here.

    Also, in the Admin - System - Settings - the phone number is a required field, but can also be any text of at least 3 characters too i.e. '___' or 'Contact' or 'n/a' etc. This would also effect your "Contact" page too.

    The Admin- Appearance - Menu - allows you to add or delete menu items contained in the navigation i.e. Blog in your example. The

    The navigation to the "Blog" page is would still work if you remembered it as it is part of the "Core" build now.

    You can modify the results of this by changing or deleting information in Admin - System - Settings and the "Blog" tab and also by going to Blog - Categories - Post and Comments.

    The actual page contents in a similar way to the header.tpl are determined in the template blog page:-
    "/catalog/view/theme/default/template/blog/home.tpl"

    Also have a look at "Blog Controller" file "/catalog/controller/blog/home.php".

    Refs:-
    https://arastta.org/docs/developers/quick-start
    https://arastta.org/docs/developers/override-system

    or all the Developer documentation.

    Hope this helps.

    Regards,

    Hackasacka
    The reply is currently minimized Show
Your Reply