[Resolved] Page Header

Home Forums Support [Resolved] Page Header

Home Forums Support Page Header

Viewing 15 posts - 1 through 15 (of 20 total)
  • Author
    Posts
  • #469254
    Daren

    Hi Tom, Leo,

    can you advise me on the best way to animate text in the page header? I want to have an <h1> heading rotate from three different headings, set to change every 5 seconds or so.

    Thank you,
    Daren

    #469364
    Leo
    Staff
    Customer Support

    Hi there,

    You will need to take a look at something like this: https://codepen.io/amritleone/pen/qERPmW

    #469367
    Tom
    Lead Developer
    Lead Developer
    #469394
    Daren

    Thank you, I’ll check them out.

    Daren

    #469444
    Daren

    Got a problem here. I added the code from treehouse into the code snippets plugin and it crashed the entire site. Said a fatal error with line four and now whenever I try to access the site I get this on a white page:

    Parse error: syntax error, unexpected ‘var’ (T_VAR) in /home/darenj5/audiojaramillo.com/wp-content/plugins/code-snippets/php/snippet-ops.php(433) : eval()’d code on line 4

    Going to go into the ftp and se if I can delete something there

    #469455
    Daren

    So I went into the file manager in cpanel and deleted the code snippets plugin and I can access my site again. Do you know what might have caused this by what I pasted in the previous mesage – eval()’d code on line 4. It also singled out the var keyword.

    #469481
    Daren

    Getting weirder. I just tried to re-install code snippets and instantly got the same screen…

    #469624
    Daren

    I moved the parallax code into the footer hook and it is working fine. The thing is I can not install the code snippets plugin anymore. Each time I do I get the fatal error page.

    #469740
    Tom
    Lead Developer
    Lead Developer

    This should help: https://github.com/sheabunge/code-snippets/wiki/Safe-Mode

    Let me know ๐Ÿ™‚

    #469865
    Daren

    Hi Tom, thanks, I’ll give this a try.

    Any thoughts on what happened?

    Daren

    #470088
    Tom
    Lead Developer
    Lead Developer

    That code is javascript, not PHP. PHP isn’t very forgiving, so any syntax errors will cause PHP errors like you encountered.

    #470101
    Daren

    Once again, thank you Tom. All good now.

    #470104
    Tom
    Lead Developer
    Lead Developer

    You’re welcome ๐Ÿ™‚

    #470110
    Daren

    With the goal of self-reliance in mind, what did you search for when thinking about a fix for this? Was it more the experience you have as a developer and have seen this before? Or was there a clue you saw that made you say “gotta search for this or that? I was surprised to see the same code in Code Snippets once I enabled safe mode and was able to get in there and check it out. I just assumed that because I deleted the plugin, then re-installed it, I would be getting a fresh install of Code Snippets.

    Daren

    #470112
    Tom
    Lead Developer
    Lead Developer

    Just out of experience – safe mode in that plugin disable the PHP entirely, which prevents the error from happening in the first place. That allows you to delete the snippet from the database completely (or fix the error).

    Then safe mode can be removed and everything is good to go.

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