Tell us what you are trying to do?
In Astra theme I have a Custom layout that is inserted in astra_header_before action just before the <header> tag. It's a line with phone number on top of the page. This works across the whole website, but fails to display on the Template for custom post type "Projekti", that is built with Toolset.
Example hidden link (there is no phone number on top like on other pages).
What is the link to your site? hidden link
password: podmornica
Thank you for contacting us and I'd be happy to assist.
I've performed some tests on my website with the Astra theme and Toolset content template assigned to the single post pages, and was able to make it work following these steps:
1. I activated the "Advanced Hooks" addon from the "Astra Pro" plugin's settings.
( yourwebsite.com/wp-admin/themes.php?page=astra&action=addons )
2. From the "Advanced Hooks" page, I added a new advanced hook entry to show some content linked to the "header_before" hook.
( yourwebsite.com/wp-admin/themes.php?page=astra&action=advanced-hooks )
3. Next, I tested a custom single post page where a Toolset content template was assigned and the custom content added through the advanced hook shows correctly.
Based on this I'll recommend removing that phone number content from the custom layout and include it through the advanced hook feature.
I hope this helps and please let me know if you need any further assistance around this.
I can't find "Advanced Hooks" setting, there is no setting with this name. Even if I paste the link (with corresc yourwebiste.com address) it doesn't work. I have Astra Pro with correct license installed, Toolset is also licensed. I uploaded screenshot with my Astra settings.
Do I need a special addon plugin for that?
On my test website, I just installed the Astra theme and the "Astra Pro" plugin.
Can you please share temporary admin login details, so that I can see what options are available and how the "header_before" content is currently added?
Note: Your next reply will be private and please make a complete backup copy, before sharing the access details.
Sorry about the confusion as I had the older version of the "Astra Pro" plugin on my test website, earlier.
While testing with the latest plugin, I was able to reproduce this issue on my website too.
The assigned custom layout hook's content is not shown on a page where Toolset's content template is used, only if the hook's content has been designed using the Elementor builder.
I've shared these findings with the concerned team and will keep you updated with the progress through this ticket.
For now, a workaround can be to add that "header_before" content without using the Elementor builder and it will show on all pages.
Waqar is off for a few days, so let me update you.
We have determined that this issue has a similar cause to another problem that relates to compatibility with Elementor, and the fix is likely the same.
We are about to close the current development cycle, and any fix won't make it into the next release, we haven't thoroughly tested it yet.
You can find a zip of a patched version of the affected file here: hidden link
You'll need to use FTP to overwrite the existing file at wp-content/plugins/wp-views/application/controller/compatibility/elementor.php
(Or wp-content/plugins/toolset-blocks/application/controller/compatibility/elementor.php if you are using Toolset Blocks rather than Views.)
Please only update the file once you have a current backup, and then do some general testing of pages where Toolset and Elementor may overlap to be sure there are no side-effects.
You would need to re-apply the patch after the next Blocks/Views update for it to continue working until a permanent fix is released.