Forums

Title as a Text hover in each post? (4 posts)

  1. moonh
    Member
    Posted 11 months ago #

    So I want the title to basically be a text box in the middle of each image when you hover.

    Is there anyway to do this?

    http://daisydeemakeup.com/portfolio/

    That is what I have so far?

  2. s_ha_dum
    Member
    Posted 11 months ago #

    I'd try to print the image title (theme PHP file edit) inside a div and use CSS to move it into place on :hover, in a nutshell.

    Do you realize that your site is basically a white screen with Javascript disabled? It does not fail gracefully.

  3. moonh
    Member
    Posted 11 months ago #

    No i didn't realise this, what is the problem exactly?

    Also not sure what you mean by print the title?

  4. s_ha_dum
    Member
    Posted 11 months ago #

    No i didn't realise this, what is the problem exactly?

    Javascript is very, very common but it runs on the client (your visitor's) computer and can be turned off. There is nothing you can do about that. In those cases, your visitors won't see much but a white page and will go away. Javascript also does not work exactly the same in all browsers on all computers and smart phone-- an already sizable and increasing share of web traffic. The problem is that your site is 100% dependent on something that isn't 100% dependable.

    Also not sure what you mean by print the title

    I think you will have to edit some theme template files so that the title is written into the html of the page. Then write so CSS rules to position that title where you like it. Given the dependence of the site on Javascript it would not surprise me if there is quite a Javascript edit required too.

Reply

You must log in to post.

About this Topic