Product
Store demo
Showcase
Features
Why for developers
Why for store owners
Industries
Fashion
Health & Beauty
Food & Beverage
Automotive
Industrial & Scientific
Furniture
B2B eCommerce
International
Downloads
Download nopCommerce
Marketplace
Translations
Copyright removal key
Mobile application
Web API
Support & services
Training
Documentation
Community forums
Premium support services
Request a quote
Contact us
Partners
English
English
Español
Deutsch
Russian
Français
Italiano
Português
Türkçe
简体中文
日本語
Tiếng Việt
Get started
Shopping cart
My account
Log in
Register
Home
>
Forums
>
General
>
Development
>
Advertisement
Advertisement
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
waleed44
Total Posts:
6
Karma:
40
Joined:
6/7/2015
Location:
Egypt
Posted:
7 years ago
Can I place ads on the side of Home page or show an advertising message appears when openning the site?
sohel
MVP
Certified Developer
Total Posts:
1623
Karma:
15968
Joined:
11/25/2013
Location:
Bangladesh
Posted:
7 years ago
waleed44 wrote:
Can I place ads on the side of Home page or show an advertising message appears when openning the site?
Yes, you can.
waleed44
Total Posts:
6
Karma:
40
Joined:
6/7/2015
Location:
Egypt
Posted:
7 years ago
how?
sohel
MVP
Certified Developer
Total Posts:
1623
Karma:
15968
Joined:
11/25/2013
Location:
Bangladesh
Posted:
7 years ago
waleed44 wrote:
how?
Find out the Index.cshtml file
Path(DefautClean Theme): ~\Views\Home\Index.cshtml
Theme path: ~\Themes\{YourThemeName}\Views\Home\Index.cshtml
Way 1
: Write the required html in the Index.cshtml file
Way 2
: Create topic from admin and call it from Index.cshtml file
i.e. See how "HomePageText" topic work.
@Html.Action("TopicBlock", "Topic", new { systemName = "HomePageText" })
Note: you will need write your own css according to your theme
a.m.
Team Member
Total Posts:
16611
Karma:
155810
Joined:
10/22/2008
Location:
Armenia
Posted:
7 years ago
Or simply edit existing "HomePageText" topic
mohsenhajikarimian
Total Posts:
3
Karma:
15
Joined:
5/19/2018
Location:
Iran (Islamic Republic of)
Posted:
5 years ago
sohel wrote:
@Html.Action("TopicBlock", "Topic", new { systemName = "HomePageText" })
in Nop v4.0 use it:
@await Component.InvokeAsync("TopicBlock",new { systemName = "advertisement" })
note: "advertisement" is system name of your new topic.
New York
MVP
Total Posts:
11324
Karma:
100972
Joined:
5/22/2011
Location:
United States
Posted:
5 years ago
Or,
use a Widget Zone with a plugin that lets you enter any html in any zone
;)
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Still have questions or need help?
.
Premium support services
.
Get dedicated support from the nopCommerce team with a guaranteed response within 24 hours.
.
Online course for developers
.
Get the practical and technical skills you need to run and customize nopCommerce websites.