[Support request] CSS Added Not Working

Home Forums Support [Support request] CSS Added Not Working

Home Forums Support CSS Added Not Working

  • This topic has 5 replies, 3 voices, and was last updated 5 years ago by Leo.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #853107
    arrunadayy

    Hi there,
    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”&gt;

    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.

    Regards
    Arunodhay

    #853247
    David
    Staff
    Customer Support

    Hi there,

    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:

    https://docs.generatepress.com/article/hooks-element-overview/

    #853388
    arrunadayy

    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.

    #853572
    Leo
    Staff
    Customer 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/

    #853616
    arrunadayy

    Hi Leo,

    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.

    #853626
    Leo
    Staff
    Customer Support

    CSS and PHP are completely different programming languages.

    The code you are trying to add above is not PHP so the message about Unable to execute PHP shouldn’t matter 🙂

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.