• How do I remove the image title so that the mouse pointer doesn’t display the image title when hovering over an image? I have searched everywhere and can’t find a solution.

    I am currently using Prophoto 2. I have seen other Prophoto blogs without the annoying little image title and I would like to do the same. My blog is found here.

    I am not very familiar with css and code. In fact on another forum someone suggested adding a code to my function.php, so I stuck it in where I thought it might work and almost gave myself a heart attack! My whole blog looked ruined with funky wording at the top, but luckily I was able to navigate to where I inserted the coding and removed it. Whew! Now I am terrified of just “inserting” some code somewhere, so I would extremely appreciate clear instructions on how to do this. Thank you in advance for your time.

Viewing 15 replies - 16 through 30 (of 37 total)
  • Add to footer.php before </body>:

    <script type="text/javascript">
    jQuery('document').ready(function($){
    	$('[title]').removeAttr('title');
    });
    </script>

    Joseph you’re a magician
    now people have a real solution for this annoying tooltip, thanks to you :}
    thank you, thank you thank you thank you
    just one last question, this code won’t affect the SEO whatever it called right ?

    I don’t know how much search engines value the title attribute so I can’t really say. It also depends whether the search engine crawler uses jQuery or not, which I have no idea. If it doesn’t then there won’t be a difference as that snippet of code won’t run.

    Thread Starter AmberPrior

    (@amberprior)

    Joseph and kapreski, could you help me out? My footer.php is just a bunch of letters and numbers… doesn’t look like usual html code. Also it says that “This file is protected by copyright law…” do you know if I can insert your code, or is it not possible on my version? Thanks so much.

    Thread Starter AmberPrior

    (@amberprior)

    Right now I can see that I am editing my Prophoto theme. I have the option to select another theme to edit (WordPress classic or WordPress default.) If I switch to editing my wordpress theme do you know if I will loose all my customizations to my prophoto blog? I’m nervous to try anything too drastic.

    Whatever customisations made on Prophoto stays with Prophoto. Changing theme won’t overwrite any files.

    Sounds like the Prophoto theme files are encrypted. Is your functions.php also encrypted?

    it’s not encrypted I know that because of the link in the footer that says NETRIVER

    Thread Starter AmberPrior

    (@amberprior)

    Hmmm you both know more about this than me! So just to be sure, in my “editor”, next to “Select theme to edit”, should I choose wordpress classic or wordpress default to edit the footer.php? Would that take me where I can add your code (and not change the way my blog looks now?)

    @kapreski
    What’s that got to do with encryption? It’s encrypted in the files but decoded when ran and viewed in a web browser.

    @amberprior
    Don’t select WordPress classic or default. Changes made on those won’t reflect in your current theme.

    Is theme function, functions.php, also encrypted?

    Thread Starter AmberPrior

    (@amberprior)

    I’m sorry Joseph, I’m not sure how to tell.

    Actually, can you paste the content of footer.php in https://wordpress.pastebin.com/ and come back with the link?

    I’ll try and decode it and add the javascript for you.

    Thread Starter AmberPrior

    (@amberprior)

    Joseph you are awesome. Here:
    https://wordpress.pastebin.com/fD6UwpFb

    Is function.php the same jibberish or does it look like normal code? Having second thoughts about decoding it here on the official support forum after seeing the copyright warning…

    Thread Starter AmberPrior

    (@amberprior)

    No, function.php looks like normal code to me. And there is no copyright warning on the function page. I am trying to post it to pastebin but it’s taking for-e-ver.

    I don’t think I’d need to see the content.

    Since we can’t add the script directly inside footer.php, we’ll try adding a javascript file.

    Open notepad, paste the following and save the file as .js. Name it anything you like as long as it’s unique inside Prophoto theme folder. I’ll be using custom-script.js in the code at the bottom so replace that if you use a different name.

    <script type="text/javascript">
    jQuery('document').ready(function($){
    	$('[title]').removeAttr('title');
    });
    </script>

    Once that’s done, upload the file into Prophoto theme folder and add the following code in functions.php. Make a new line after <?php at the start and paste the code.

    if( !is_admin() ){
    	wp_enqueue_script( 'custom-script', get_template_directory_uri() . '/custom-script.js', array('jquery'), false, true );
    }

Viewing 15 replies - 16 through 30 (of 37 total)
  • The topic ‘How to remove image title when hovering over image’ is closed to new replies.