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?
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
Share this post:
Responses (3)
-
Accepted Answer
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 -
Accepted Answer
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 -
Accepted Answer
Your Reply
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »