having a problem adding custom code to Socialize II template. I've gone through several forum and support posts but I haven't fond anything that works.
Using Socialize V2 template in the default-content-left layout configuration.
I want to add code for an ad placement to the front page.
From the layout description I want to put the code in Auto position-5.
I put the custom code in Before </body> tag. The code always shows up in the very bottom footer location on top of other footer code.
<div class="joms-moulde__wrapper">
<?php $this-modules('position-5'); ?>
<p>Native Ad here</p>
</div>
What is the proper way to specify a socialize II template position in the Custom Code html content.
Socialize II custom code not working
Hi
That custom code section is used for custom script only like: Google tags, Google Analytics, ... not HTML code.
You should edit the layout file of template that you're using: /templates/socialize/tpls/
You can tell me how you want to achieve so I will take a look.
Regards
saguaros
Oh ok, Thank you so much for the response.
I thought I saw that the template should not be updated directly and to use the custom code, but maybe that was related to something else. I'm pretty easily confused.
For some reason Google AdSense does not like my site and will not provide advertising.
That being said, I cannot use AdSense to pick where it wants to place ads. Probably just as well.
I will need to identify the template locations where I'd like ads to be displayed and embed <div>s or <iFrame>s to display ads at different locations.
As a test I was trying to add a <div> to the layout postion-5 location using the custom code. Looking at the default-content-left layout in the /tpls/ directory this would probably be in the <?php $this->loadBlock('mainbody-content-left') ?> or <?php $this->loadBlock('spotlight-2') ?> location.
I'm not seeing any html so there must be another way to do what trying to do. Does JomSocial have a template override tool or something else to help me place content in desired locations?
Thank you for your help
Thank you. there a couple spots where I think I can embed ads without disrupting the look of the page. maybe there are display options for the socialize template that I'm not taking advantage of. I tried reading the T-3 documentation but it's still not clear. there doesn't appear to be the template magic tool for the socialize template.
I'd like to place ads below the events display on the front and profile pages, and I'd like to shorten the width of the news feed display pages and add displays to the right of the feeds.
In the news feeds page, you don't use sidebar but main content block only so if you want to customize HTML code, you can edit this file:
/templates/socialize/tpls/blocks/mainbody/no-sidebar.php
Hi Saguaros,
Thanks for your reply. I seem to be in a state of confusion between J4, T3, and the Socialize template. I've watched several of the T-3 tutorial videos, and they appear to be all J3, so there are things I'm not seeing. I tried to create a copy of the default-content-left layout so I wouldn't edit the default, but I'm not seeing it in any of the directories.
if I use a copy of one-sidebar-right to give me the right side bar do I put my html under the <jdoc:include line? I really don't know what I"m looking at. Should that be removed and replaced with the html.
<!-- MAIN CONTENT -->
<div id="t3-content" class="t3-content col-xs-12 col-sm-8 col-md-9">
<?php if($this->hasMessage()) : ?>
<jdoc:include type="message" />
<?php endif ?>
<div class="t3-content-block">
<jdoc:include type="component" />
</div>
</div>
<!-- //MAIN CONTENT -->
<!-- SIDEBAR RIGHT -->
<div class="t3-sidebar t3-sidebar-right col-xs-12 col-sm-4 col-md-3 <?php $this->_c($vars['sidebar']) ?>">
<jdoc:include type="modules" name="<?php $this->_p($vars['sidebar']) ?>" style="T3Xhtml" />
< NEW Ad Code here> ?
</div>
<!-- //SIDEBAR RIGHT -->
Thanks I will give that a try
Thanks, I've decided to go a different route. I don't really like having to update code for fear that will be overlaid with the next maintenance or upgrade. Now that I know where the module positions are I can create a custom html module or wrapper module and assign it to the correct position. Is there anyone working on making the T-3 Theme magic work on Joomla 4 templates?
Thanks for your help.
- Edited
tskipton Is there anyone working on making the T-3 Theme magic work on Joomla 4 templates?
Due to the new updates of Joomla 4, I'm afraid that ThemeMagic will not be available in Joomla 4
Editing via ThemeMagic would be the same of editing LESS files for global changes in style, let me know if you want to customize LESS so I can suggest further.
Hello,
I try to alter the colors, but without any success.
Feels like being too stupid.
custom.css doesn't work and changes in the LESS file doesn't react at all.
A documentation would be very nice.
Kindest regards
Hi
This template is built using T3 framework, you can check out this documentation for how to customize theme with LESS: https://www.t3-framework.org/documentation/bs3-customization#theme-customization
Let me know if you need any further help.
Regards
Thank you for you quick reply :-)
Xiantropist Let me know if you need any further help then.