• Resolved zizio82

    (@zizio82)


    Hi everyone, I was looking for an ad plugin and I think I found it but I have a problem. The theme I’m using is dark and unfortunately I don’t have the possibility to change the color of the text of all parts of the plugin (e.g. nothing found in the search box). Is it possible to do something? Thanks to anyone who can help me!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi,

    can you paste a link to the page where you are having this problem? I can take a look at it and see if there some easy way to make the plugin blend better with your theme.

    Thread Starter zizio82

    (@zizio82)

    Hi Greg,

    https://lampiditesla.it/advert/gomme/

    This is an example (I don’t know why I’m seeing the big photo above but I’m working on it).
    As you can see, the text is almost illegible. I guess it’s a theme issue (I use the7.io)

    Thanks!

    Thread Starter zizio82

    (@zizio82)

    Sorry Greg but i need to made some modification. I made some screenshot:

    https://ibb.co/HD995ch
    https://ibb.co/t2x4WzL

    Plugin Author Greg Winiarski

    (@gwin)

    Hi,

    you should be able to change the text color by adding the code below in the wp-admin / Appearance / Customize / Additional CSS panel

    .wpadverts-blocks .atw-text-gray-500 {
      color: white;
    }
    .wpadverts-blocks .atw-text-gray-700 {
      color: whitesmoke;
    }
    .wpadverts-cpt .atw-text-gray-500 {
      color: white;
    }
    .wpadverts-cpt .atw-text-gray-700 {
      color: whitesmoke;
    }

    Of course change “white” and “whitesmoke” to colors you would like to use, you can also postfix the colors with “!important” keyword (for example “white !important”) to make sure your color will be used.

    Thread Starter zizio82

    (@zizio82)

    Thanks Greg now it’s perfect and i can change the color finally! The last problem is the detailed view which does not respect the template I usually use. But here I don’t know if you have a solution to offer me… However, the color change of the text is already excellent. Thank you!

    https://ibb.co/YjCpD0h

    Plugin Author Greg Winiarski

    (@gwin)

    Hi,

    you should be able to push the content down by adding the following code in the wp-admin / Appearance / Customize / Additional CSS panel

    .single-advert #main {
      margin-top: 125px !important;
    }

    Thread Starter zizio82

    (@zizio82)

    Sorry for delay and i have marked as resolved! Thanks Greg!

    Add another problem but with solution. On the advert i have a big thumbnail on the top… i have added this ccs and solved the problem

    .single-advert .post-thumbnail {
    display: none !important;
    }

    But with WPAdverts 2.1 is it possible to remove the ability to register to post an ad? The _adverts_account in practice… on hold 1.5 there is “require” parameter.

    Promise is the last question! ??

    • This reply was modified 12 months ago by zizio82.
    Plugin Author Greg Winiarski

    (@gwin)

    Hi,

    do you mean to remove the “Account” field from the publication form? If so then you can do that by adding the code below in your theme functions.php file

    add_filter( "adverts_form_load", "remove_account_field" );
    function remove_account_field( $form ) {
      if( $form['name'] != "advert" ) {
        return $form;
      }
      foreach( $form["field"] as $key => $field ) {
        if( $field["name"] == "_adverts_account" ) {
            unset( $form["field"][$key] );
        }
      }
      return $form;
    }

    If you would like to use the “requires” param with the Classifieds Publish block then it is possible as well, when editing a page with this block, click on it and in the “capability required to publish” field enter “read” (or some other capabiliy you would like users to have).

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Change text color’ is closed to new replies.