-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable for individual pages #17
Comments
This makes no sense, as you would have to do that for every extension that puts something into the |
If you want to disable the social images just create another page layout and turn it off there.
|
You're right, but how would I get the files I defined as static in j_scripts.html5 to NOT get added to the header but to any other place instead?
I just did but it has no effect. The tags are written even with social images not activated in the layout. |
You can use extensions like Theme+ for that, may be also Supertheme. Or you do it with your own PHP script. |
I'll have a look. Thanks! |
Are you 100% sure it's not working? This line should prevent that https://github.com/codefog/contao-social_images/blob/master/classes/SocialImages.php#L103 Where do you add the social images in this case? Page settings, content elements, news, etc.? |
I just updated from version 3.2. to 3.3. and now it works. Sorry for the trouble. |
I think it would be useful to have the ability to disable the functionality for certain pages in the site structure.
In my case I created a landing page where I moved
$this->head;
infe_page.html5
from the<head>
to the end of the<body>
to prevent JS-files from blocking DOM rendering. This leads to having<meta>
tags in the body. I know this is an edge case but maybe it could be useful in other scenarios too.The text was updated successfully, but these errors were encountered: