By Andre on Thursday, 20 April 2017
Replies 5
Likes 0
Views 1.1K
Votes 0
Hi. I really liked the new layout option on easyblog 5.1. Is there a way to embed ads into the magazine or grid listings ? Is there a way to specify a css class to elements ?
Hi Andre,

I am sorry for the delay of this reply and glad to hear you like the new layout in EasyBlog 5.1



Regarding the ads, correct me if I am wrong but do you mean google adsense? If yes, currently EasyBlog will only display the google ads when you view the blog post. If you want to embed your own ads in magazine or grid page, you will need to do a template override on below files and add your ads embed code manually

For magazine view, depending in your layout style, e.g. layout 1:

Copy the file 'JOOMLA/components/com_easyblog/themes/wireframe/blogs/magazine/layout_1.php' to 'JOOMLA/templates/[your_template]/html/com_easyblog/blogs/magazine/layout_1.php'

For grid view:

Copy 'JOOML/components/com_easyblog/themes/wireframe/blogs/grid/default.php' to 'JOOMLA/templates/[your_template]/html/com_easyblog/blogs/grid/default.php'

For more information on EasyBlog template overriding, please read here https://stackideas.com/docs/easyblog/administrators/customizations/template-overriding

Hope this help and have a nice day!
Sam
·
Thursday, 20 April 2017 13:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Is it possible to have pagnition on the magazine layout ? or have the grid layout to show one big on top. I use adsense and own ads for customers. Is it possible to add a module in the template override ?

I use the buildt in banner component in joomla for ads, is there a add component you recommend wich work good with easyblog ?
·
Thursday, 20 April 2017 16:56
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Andre,

Is it possible to have pagnition on the magazine layout? or have the grid layout to show one big on top


Regarding the above, I am sorry but currently the magazine layout was designed to not have pagination. It intended to display a 'one page' magazine style for blog posts. As for the 'one big' on top of grid layout, do you mean one big block that cover the whole width of grid layout? Please advise.

Is it possible to add a module in the template override


Yes, it is possible to render module in template file. You just need to include below code to render modules that are in a specific position. E.g.


<jdoc:include type="modules" name="YOUR_CUSTOM_POSITION" style="xhtml" />



I use the buildt in banner component in joomla for ads, is there a add component you recommend wich work good with easyblog ?


To be frank with you, I personally don't use any of the Joomla ads component. Maybe you can try your luck in JED and see if any good ads component that work well with EasyBlog

Hope this help and have a nice day.
Sam
·
Thursday, 20 April 2017 17:09
·
0 Likes
·
0 Votes
·
0 Comments
·
On the grid layout i would wish to have 1 big showcase wich covers the hole width of the page and i use 2 coloums with items below. I was thinking to place an add position below the showcase and above the items.
·
Thursday, 20 April 2017 17:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Andre,

Yeah, maybe we can add a module position in grid layout in the future but for now, what you can do is to create a template override for grid layout and place the code to render the module positions above the column items. So in your grid layout, you will have a full width content and follow by two column items.

Hope this help and have a nice day!
Sam
·
Thursday, 20 April 2017 18:07
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post