Advertisement

4 years ago
Can I place ads on the side of Home page or show an advertising message appears when openning the site?
4 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.
4 years ago
how?
4 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
4 years ago
Or simply edit existing "HomePageText" topic
1 year 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.
1 year ago
Or, use a Widget Zone with a plugin that lets you enter any html in any zone ;)