🧩 Template Surgery: Injecting JSON-LD into XenForo 2.3
👋 Introduction
XenForo is a beast, but its default SEO is a bit "generic". It throws "DiscussionForumPosting" at Google while you are writing technical masterpieces. If you just paste your script blindly into the footer, Google will laugh...
Deleted member 172653
Thread
json-ld injection
techarticle schema
templatemodification
thread_view
xenforo 2.3 seo
Hi,
The questions says it all, I think. I've googled and gpt-ed but can't seem to get a cohesive answer.
It appears that I don't have permissions (I navigated directly to admin.php?template-modifications/add). I'm using the master account, so is that a permission that I can give myself, or...
I am trying to move the breadcrumbs from the bottom of the page to move them above the "similar threads" container. It seems as though when I move them around within the page container they either move all the way to the top or all the way to the bottom.
My site is here:
MY SITE
as an...
I need to implement template modification just before login block but the div changes due some other add-on and because of that my modification doesn't work, the div is never found.
<div class="p-navgroup p-account {{ $xf.visitor.user_id ? 'p-navgroup--member' : 'p-navgroup--guest' }}"...
This is something I've been trying to gain for quite some time. It works with my forum:
In the forum list, When you have a long list of sub forums, you'd often like them to collapse into a sub-forum list.
However, by default they'd collapse only when they are on third level...
It would be nice if the "Merge" button on templates had an option for "Side by Side" merging. I find the all in one difficult to understand.
As you can see here is a photo of the current all in one merger for the update to XF 2.2:
There isn't a clear sign of what was added in 2.2 and what...
Want clean 1-3 columns for different devices?
Display one on smaller devices:
Two on medium:
And three on large:
Add this code to extra.less
.listInline--customField
{
@media only screen and (max-width: 600px) {
columns: 1;
-webkit-columns: 1;
-moz-columns: 1...
I created a core.less template modification for my add-on but it looks like it's not applied for some reason.
I created it based on a similar one from XFRM. The only difference I could spot is the apply count and those numbers on the side.
What am I missing?
Hemant here again with Node grid layout without Addon.
Well after Developing some addon i really like to go back to learn and play with css but this time with flex instead of grid so here a quick mod for you.
so here it is.
So here a simple CSS that you need to place it in Extra.less that will...
Description :
This add-on allow you to add a Support Us widget in the sidebar.
Feature summary :
Options :
Enable
Text
Link
Overlay
Style properties :
Enable icon
Icon
Branding :
This add-on does not include branding.
Installation :
Download and unzip it.
Copy the...
Description :
This add-on allow you to add a online/offline status indicator.
Feature summary :
Style properties :
Online Icon
Offline Icon
Hide on mobile :
Hide
Show
Online Indicator
Offline Indicator
Online Indicator - Responsive
Offline Indicator - Responsive
Branding :
This add-on...
Hello,
I have an external python function that write hourly directly on xf_template_modification table.
How can I created an entry on Xenforo Cron and rebuild the templates hourly too? Is not important
the contemporaneity of the events.
Thanks.
I'm trying to create a template modification that adds a new option to a radio unit in an admin template. This existing radio unit looks like so:
<xen:radiounit label="..." name="...">
<xen:option value="...">...</xen:option>
...
</xen:radiounit>
I want my new option to contain a...
It is a minor feature request and it's based on some of the add-ons I already made that have no actual .php files and only contain a single XML.
For example I want to create an add-on that changes the look of editor or any other element. To do that I'll have to:
Create a template;
Create a new...
Hello,
I am new to Xenforo, but have a decent development background. I'm looking to modify the display of the tag results (see screenshot below) for my site.
http://soulfightersacademy.com/network/index.php?tags/
I am assuming that I would edit the a "tag" template or something. But is that...
I want to replace the default phrase here (can't do it in phrases as I only want it in this one position)
However it doesn't seem to work, ie the default phrase remains.
Find:
<a href="{xen:link account/alerts}" rel="Menu" class="navLink NoPopupGadget">{xen:phrase alerts}
Replace:
<a...
I can select this options in the templates for the addons I created:
There are no more details. So I wonder what effects are when I enable this. In what cases should/may you enable this option?
I want to add third party add-on statistics, taken from the user's personal profile page sidebar "info block" to the forum home page "sidebar visitor panel" – using template modifications.
How to do it and what's the best practice (as "hooks" are depreciated)?
Thanks in advance.
As I a checking the demo version of the Xenforo found templates and view something new to me.
As from past few months am working on mybb, so just very habitual of it. But now me and my team is planning to shift our forum on XF.
Used demo and many things in ACP, everything we want and more will...