Free Directory, Listing & Classifieds WordPress Plugin Support General HivePress Listings title displaying restricted to amount of characters.

Listings title displaying restricted to amount of characters.

  • Author
    Posts
  • Lenki

    Hi Ihor, I have 3 questions, I’m sure that you have solutions 🙂

    1. I want to display title with restricted amount of charters. For example title has 60 letters, but on front-page and /listings in columns/blocks will display only 40 and then “…” like on https://olx.pl (front page).

    2. How to delete /account icon from header?
    3. Is it possible to any manual edit /account site – I mean this sidebar with listings, settings, logout etc.? I need add breadcrumbs and delete access to /account/sample_site_to_delete.

    Regards,
    Lenki

    ihordeveloper

    Hi,

    1. It’s possible, but requires CSS customizations https://www.w3schools.com/cssref/css3_pr_text-overflow.asp

    2. You can try this CSS snippet:

    .hp-menu__item--user-account {display:none}

    3. If you mean adding custom content or menu items this requires PHP customizations (if you’re familiar with PHP you can use the “hivepress/v1/menus/user_account” filter). Also you can add custom widgets to the account sidebar in Appearance/Widgets section.

    Lenki

    So,

    1.
    https://ibb.co/sjvM3Cv

    white-space: nowrap; 
      width: 100%; 
      overflow: hidden;
      text-overflow: ellipsis;
      border: 0px solid #000000;
      overflow: visible

    2. Works, thanks.
    3. Not tried yet, but this https://hivepress.io/support/topic/my-account-section/#post-7232 looks like enough.

    Lenki

    1.* – it is enough to use CSS Snippet:

    .hp-listing__title{white-space: nowrap; width: 100p%; overflow: hidden; text-overflow: ellipsis; border: 0px solid #000000;}

    Final result:
    https://ibb.co/n61Jh8z

    Lenki

    So, with 15px font-size and one-line title there is 20 characters (320px device), 26 characters (360px device) and 32 characters (414px device). That’s enough for me.

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

You must be logged in to reply to this topic.

Subscribe

Sign In

Don't have an account? Register

Forgot password?

Register

Already have an account? Sign In

Forgot password?

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.

Black Friday is coming! Get 25% off any purchase with FRIDAY2020 coupon code until Friday, November 27.