problem with text

  • christos
    christos
    Newbie 23 points
    October 11, 2015 at 10:20 am

    Hello,

    I create this script ” <script>
    jQuery(“._searchresultsblock h4″).after(‘<p> <mark style=”background-color:LightCoral;”> ΟΣΕΣ ΑΓΓΕΛΙΕΣ ΣΤΟ ΛΟΓΑΡΙΑΣΜΟ ΣΑΣ ΕΜΦΑΝΙΖΟΝΤΑΙ ΜΕ ΚΟΚΚΙΝΟ ΕΧΟΥΝ ΛΗΞΕΙ</mark></p>’)
    </script> ”
    Τhe problem is that this script appears to the search results page and the personal classifieds of any user. I want this text to appear only on personal classifieds each user and not on the page with search results.

    Could someone help me;


  • Josh
    Super Guru 13,875 points
    October 11, 2015 at 11:46 am

    Hello christos,
    Your question is not very clear.Do you mean you only want the text to be displayed to members?If so then try the below code:
    [code title=””]
    <script>
    jQuery(“.logged-in ._searchresultsblock h4″).after(‘<p> <mark style=”background-color:LightCoral;”> ΟΣΕΣ ΑΓΓΕΛΙΕΣ ΣΤΟ ΛΟΓΑΡΙΑΣΜΟ ΣΑΣ ΕΜΦΑΝΙΖΟΝΤΑΙ ΜΕ ΚΟΚΚΙΝΟ ΕΧΟΥΝ ΛΗΞΕΙ</mark></p>’)
    </script>
    [/code]

  • christos
    christos
    Newbie 23 points
    October 11, 2015 at 10:57 pm

    No i want this script to appear only in my listings. For example if I have upload 10 classifieds when I go my account/ my listings, only there appear this script.

    Sorry but my english is not very good 🙂

    Attachments:
    You must be logged in to view attached files.
  • christos
    christos
    Newbie 23 points
    October 31, 2015 at 5:56 pm

    anyone?

Viewing 4 posts - 1 through 4 (of 4 total)

New Business Themes for WordPress 2020

Start your new website today!

View Business Themes