Opencart 2.0.x.x hide menu - menu

I have small problem with opencart 2.0.3.1. I use Journal theme and I want my main page to not show main menu. I want to create something like "welcome" page where I don't want to show a menu.
I'm not sure where to look; I have custom home page where I redirected all modules from journal to my new "main page" but I couldn't do the same with menu.
I tried looking on structure of the page but I don't entirely understand it. I was used to joomla structure before.
Also I tried to find line that call for menu on exact page but couldĀ“t find it either.

On the homepage template (home.tpl) add custom css along the lines of
<style>
#menu {
display:none;
}
<style>
This will hide the menu (if it has the id menu) just on the homepage.

Thank you very much it did nothing but i change the code to corespond with my template to:
<style>
div#sticky-wrapper {
display: none;
}
</style>
and now its working you realy helped me thank you again

Related

Infopath Form Web Part shifts/moves page off center

As you can see in the image below, when the InfoPath web part is placed on the SharePoint page (SharePoint 2013), it moves the page content area of the center.
This has happened on multiple pages. I can't seem to find any information about why this is happening.
Any help would be appreciated.
This is somehow a bug in SharePoint 2013 (check here). A quick resolution would be to add the following CSS to the page (in a hidden Content Editor WebPart or a Script Editor WebPart):
#sideNavBox {
display: none;
}
Paste this code in a script editor web part. Where it says WPQ2 change the 2 to the number of that webpart. You can find that by using Google Chrome inspect element. Modify the margins css to your liking.
<style type="text/css">
#MSOZoneCell_WebPartWPQ2 {
margin-left:-200px;
margin-top:-150px; }
</style>

Custom Search Result Box For Blog

My Blogger custom search gadget in a menu when click on this its visible but I want it to the visible always. my blog www.bloggerspices.bid
Use this
div#searchbox {
display: block !important;
}

Hide edit tab in editform.aspx page for a list?

Based on client requirement, we have customized list editform.aspx page. By default when user lands on that page, edit tab is expanded. We do not want anyone to see the ribbon on page load. We do not want to hide s4-ribbonrow. Currently I am using This article to hide the edit tab on page load. But this takes lot of time (5 seconds).
Is there any other way that we can achieve this and still be fast? Please let me know your thought on this.
Environment: SharePoint Online
Thanks for all your help!
Try to use this css:
#Ribbon\.ListForm\.Edit {
display: none;
}
#Ribbon\.ListForm\.Edit-title {
display: none;
}

Orchard Navigation - how to make menu link not clickable

I have following menu navigation:
home
product
product 1
product 2
news
press releases
about us
Every menu item above links to a Content, except "product".I need to make it so when the user click "product" would not go anywhere.
I tried to use "Custom Link", and enters "#" or "javascript:void(0)" in the url, however that does not work since Orchard always prefix the url with "/".
Also, I tried to use "Html Menu Item" and enter "product" in the html body, but always rendered as
<li><span class="raw"><p>product</p></span><ul>...</ul></li>
I want either following:
<li>product<ul>....</ul></li>
or
<li>product<ul>....</ul></li>
Is there an easy way to do this?
In the Menu.cshtml file under the Core->Shapes->Views directory in the Orchard.Web project, you could do this:
$(document).ready(function () {
$("#Nav a").click(function(e) {
e.preventDefault();
});
});
The above disables clicking on all of your menu links, so if you want to prevent clicking on the second level menu items:
$('#Nav li ul li a').click(function(e){
e.preventDefault();
});
That Menu.cshtml file is the view for your navigation menu, so you can define it's behavior as you wish there. You can look at this answer of mine as well.
You may do as Mohammad says, but create an alternate Menu.cshtml in your Theme. It is bad practise to modify Orchards core code.

Magento 1.5 CE display search function in navigation bar

I am using Magento CE v1.5. Modern theme. I would like to display Search bar on the right hand side in the Navigation bar. Basically category menus on the left and search function on the right on a horizontal menu.
I have replaced top.bar with top.menu in catalogsearch.xml. The search function displays on the right with the following CSS
.form-search { margin:3px auto; float:right; position:absolute; right:20px; top:70px; }
I am just wondering do I need to do anything to top.phtml file because many other tutorials suggest you need to add
getChildHtml('topSearch') ?>
My search displays without the above code in the top.phtml file.
Please suggest the correct way to go about achieveing search in the navigation bar in CE v1.5. Thank you.
If, getChildHtml() not loaded in a template that you work on, you can't show the block that you want. Try the following snippet :
<?php echo $this->getLayout()->getBlock('top.search')->toHtml() ?>

Resources