By Alex on Friday, 22 July 2022
Posted in General Issues
Replies 7
Likes 0
Views 402
Votes 0
Hi, I would like to use another extension for Rich Text Support of all of my pages on my site. For EasyBlog, the elements show up double (see sample link in hidden info), so I would like to switch it off in EasyBlog.

How can I do that?

Thank you.
Hi Alex,

There is no option to disable structured data in the site backend. Are you trying to remove this section from the page source? refer to my screenshot. If yes, then you can do a template override for this file path, go to backend > easyblog > themes > themes> edit wireframe.

Find this file path in template editor:
/helpers/post/list/schema.php -> this file is responsible blog listing view
/helpers/post/entry/schema.php -> this file is responsible for post entry view
·
Friday, 22 July 2022 19:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you Thiyagarajan, got you.

Regarding the marked script - so that means I should delete the complete part until </script> in order to "deactivate" the rich data snippet, right?

Will this be overwritten with the next update of EasyBlog?
·
Friday, 22 July 2022 19:49
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Alex,

Regarding the marked script - so that means I should delete the complete part until </script> in order to "deactivate" the rich data snippet, right?


You are right. You will need to delete the whole <script>...</script> tag block from the theme file.


Will this be overwritten with the next update of EasyBlog?


If you modify directly from EasyBlog core file, then yes, your changes will be overwritten when you upgrade your EasyBlog.

What you can do is to create a theme file override of the two theme files.

E.g.

Copy the '/helpers/post/entry/schema.php' file and place the file into your Joomla's template override folder, e.g. '

'JOOMLA/templates/[YOUR_JOOMLA_TEMPLATE]/html/com_easyblog/helpers/post/entry/schema.php'

Hope this help and have a nice day
Sam
·
Friday, 22 July 2022 20:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you Sam, I did so - took the schema.php, deleted the script part, and uploaded to

mydomain/templates/olmo/overrides/html/com_easyblog/helpers/post/entry
and
mydomain/templates/olmo/overrides/html/com_easyblog/helpers/post/list


Not sure, if I created the correct path - did I missunderstand? Because - when testing the blog article, it still shows 2 elements for "article".

Also deleted cache to make sure this is not interfering.

Thank you.
·
Friday, 22 July 2022 20:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Alex,

I am sorry for the delay of this reply.

I did so - took the schema.php, deleted the script part, and uploaded to

mydomain/templates/olmo/overrides/html/com_easyblog/helpers/post/entry
and
mydomain/templates/olmo/overrides/html/com_easyblog/helpers/post/list


Not sure, if I created the correct path - did I missunderstand? Because - when testing the blog article, it still shows 2 elements for "article".

Also deleted cache to make sure this is not interfering.


Regarding the above, I not sure if the template override folder path is correct or not for your Joomla template. Usually the Joomla template override path is 'mydomain/templates/olmo/html/' (without the overrides folder).

If your changes is already taking effect, then I guess the above is the correct path.

If not, then you might want to try the below folder path


mydomain/templates/olmo/html/com_easyblog/helpers/post/entry
mydomain/templates/olmo/html/com_easyblog/helpers/post/list


Hope this help and have a nice day
Sam
·
Monday, 25 July 2022 09:56
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you Sam - yes, that made it!
Thought I need to put the overide-files into the overide folder?
·
Monday, 25 July 2022 21:24
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Alex,

Glad to hear that the EB template override files work correctly now.

Thought I need to put the overide-files into the overide folder?


Yes, You are correct. The folders below where you upload the two schema.php files, these folders are actually your template override folders.


mydomain/templates/olmo/html/com_easyblog/helpers/post/entry
mydomain/templates/olmo/html/com_easyblog/helpers/post/list


Hope this help and have a nice day
Sam
·
Tuesday, 26 July 2022 15:04
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post