Results 1 to 4 of 4

Thread: Quick Tut! - Replace 'no images'

  1. #1
    Thread Starter
    Veteran pointandstare's Avatar
    Join Date
    Apr 2009
    Location
    London, England
    Posts
    311
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Quick Tut! - Replace 'no images'

    Rather than have the text 'no images' display on an ad you might want to replace this text with an image.

    Create an image (something around 50px x 50px is fine) to replace the text and upload to the classipress images folder.
    Then go to classipress/functions.php
    Around line 87 look for -
    Code:
    if ( $matches[0] == "") {
    				_e('There are no images','cp');
    			}
    Replace this with -
    Code:
    if ( $matches[0] == "") {
    				_e('','cp');
    			}
    Of course, it's best NOT to edit core files and I hold no responsibility for any problems caused by using this Quick Tut!

  2. #2
    Founder dcowgill's Avatar
    Join Date
    Mar 2009
    Location
    San Francisco, CA
    Posts
    1,939
    Thanks
    66
    Thanked 135 Times in 99 Posts

    Re: Quick Tut! - Replace 'no images'

    Thanks for sharing Lee. Tutorials are always popular with the community so keep em coming.

  3. #3
    cometa's Avatar
    Join Date
    Apr 2009
    Location
    United States
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Quick Tut! - Replace 'no images'

    Just a note

    In Version 2.92 I replaced "no-pic.png" that comes in the "wp-content/themes/classipress/images/" folder and that accomplished the same thing without editing the code.....unless there is another reason that the code should be edited

    c

  4. #4
    AppThemes Affiliate ricsca's Avatar
    Join Date
    Jan 2010
    Location
    Italy
    Posts
    21
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Re: Quick Tut! - Replace 'no images'

    As you can see in the homepage?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)