Hello-
Google has recently announced that they will be penalizing sites with mobile-usability issues.
When you run their mobile-friendly report, it shows all of the Producttabs/ProductCustomTabs are problematic due to not having a viewport configured. I realize that these "pages" are never viewed as stand-alone pages, but do not want to take any chances that google will demote our SERP.
I added a viewport meta tag to each of the producttabs code, like so:
_ProductCustomTab.cshtml
@using Nop.Web.Framework
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<div class="custom-tab">
@Html.Raw(Model)
</div>
This at least causes those errors to disappear, but then it reports many issues with the reviews tab pages because the recaptcha box doesn't fit inside the viewport...and many touch elements are too close, etc..
I am wondering if it would be possible to just add the tabs "pages" or directory to the robots file as nofollow?? Then maybe google will ignore them completely?
How can this be done?
Thanks,
Steve
Hello-
The demo shows the plugin functioning outside of a nopcommerce site..without the header, footer and left/right columns. Is it possible that the knowledgebase can appear within a nopcommerce site so my header and footer are still visible?
Thanks!
Also...I thought maybe the solution was to just have one ContactUs topic page and code it to have store-relevant information on it, but it is impossible because razor code in topic page content doesn't execute.
How do other people have a different contact page for each store..and still have contact form on each??
Hello-
We recently set up a second store on our nopcommerce 3.40 site.
I want to have a unique ContactUs page for store2, so created a new topic page named ContactUs2.
In the mega menu view (MegaMenu.cshtml), I added this in top:
string currentstore=HttpContext.Current.Request.ServerVariables["HTTP_HOST"];
if (Model.Settings.IncludeContactUsLink)
{
<li>
if (currentstore == "www.store1domain.com")
{
<a href="@Url.RouteUrl("ContactUs")" title="@T("ContactUs")">@T("ContactUs")</a>
}
else
{
<a href="@Url.RouteUrl("ContactUs2")" title="@T("ContactUs")">@T("ContactUs")</a>
}
</li>
}
The following section of code, from the ProductTemplate.Simple.cshtml, never seems to execute, as the manufacturer and categories don't appear like on the demo. I presume one of the 2 conditions isn't being met...but I do not understand how..the products all have a manufacturer and category defined....
Is there a setting somewhere that I am not seeing?
Thanks-
@if (productFashionModel != null && ((productFashionModel.ProductManufacturers != null && productFashionModel.ProductManufacturers.Count > 0)
|| (productFashionModel.ProductCategories != null && productFashionModel.ProductCategories.Count > 0)))
{
<div class="links-list">
<span class="view-more-options">@T("SevenSpikes.Themes.Fashion.Product.ViewMore")</span>
<ul>
@foreach (ProductManufacturerMiniModel manufacturer in productFashionModel.ProductManufacturers)
{
<li>
<a title="@manufacturer.Name" href="@Url.RouteUrl("Manufacturer", new { SeName = @manufacturer.SeName })">
@manufacturer.Name
</a>
</li>
}
@foreach (ProductCategoryMiniModel category in productFashionModel.ProductCategories)
{
<li>
<a title="@category.Name" href="@Url.RouteUrl("Category", new { SeName = @category.SeName })">
@category.Name
</a>
</li>
}
</ul>
</div>
}
OK...that makes sense to me...I just didn't want to undo any of my customizations on the main site.
Thanks for explaining.
I did as you said, but still get the error, so have submitted a ticket.
I think I just misunderstood you...
Hello-
I just posted on the forum ( here ) and then found this thread, which concerns me.
I need help configuring my multi-store site to use two different 7spikes themes...
I own and have the alfresco theme already working(and heavily modified) on my main store.
I am creating a second store, and now also have current license for fashion theme.
I have both themes installed on my site...however...when I was installing the second theme, I did not upload the plugins included with fashion theme because the same plugins that came with alfresco are already in the /plugins folder.of my site (and some views and css in my alfresco now have modifications)
I suspect that is why I get error when enable the fashion theme on the second store:
Error executing child request for handler 'System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerAsyncWrapper'.
..........in c:\inetpub\wwwroot\MYSITE\Views\Widget\WidgetsByZone.cshtml:line 5 at System.Web.WebPages.WebPageBase.ExecutePageHierarchy()