- This topic has 5 replies, 3 voices, and was last updated 2 years, 2 months ago by Leo.
March 28, 2019 at 10:18 pm #853107arrunadayy
I wanted to add CSS which gives Mobile responsiveness of the video which is hosted on some other place. When i added the CSS it does not work. When i contacted the video hosted site they say that it is working on other websites.
I have been told to Add the below line of CSS to site to make video mobile responsive:
<link rel=”stylesheet” type=”text/css” href=”https://vidyz.com/VideoPlayer/videostyle.css”>
I have added Simple CSS plugin and added this code but nothing is working. Can you please suggest what I can do to get this rectified.
ArunodhayGeneratePress 2.2.2GP Premium 1.7.8March 29, 2019 at 3:10 am #853247DavidStaffCustomer Support
so that code is a link to their style sheets so needs to be added the Head of the website. To do this:
1. Make sure you have the Elements Module active in the Dashboard > Appearance > Generate Press.
2. Then Appearance > Elements –> add a new Hook Element.
3. Add your code to that element.
4. Set your Display Rules – either use Entire Site or the specific pages / posts the video is being used on.
5. Save the hook 🙂
More info on Hook Element:March 29, 2019 at 6:10 am #853388arrunadayy
Thanks for your reply. But i think i have other issue also regarding “Unable to execute PHP as DISALLOW_FILE_EDIT is defined” showing in the Execution of PHP in the hook.
I have security plugins activated.March 29, 2019 at 7:50 am #853572LeoStaffCustomer Support
That’s not a bad thing unless you want to execute PHP.
See more info here: https://docs.generatepress.com/article/disallow-php-execution/March 29, 2019 at 8:46 am #853616arrunadayy
My issue is that the CSS i had been provided by the company needs to work but after saving the element with the required CSS it is not giving the required effect. I checked that I am seeing “Unable to execute PHP as DISALLOW_FILE_EDIT is defined” this as reason in the Hooks and it is saying that the php will not work.
So my question was do i need to change this or not.
For your reference i am not a technical person so I am asking these questions.March 29, 2019 at 9:00 am #853626LeoStaffCustomer Support
- You must be logged in to reply to this topic.