Join our new community forum for support & discussion

Join Now

Home 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

    ihor developer

    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.

    ihor developer

    Thanks for posting the solution!

    unitehearts

    One issue I noticed is that when you open the full listing also it does not show the full Listing Title.
    It is good if it is shortened in the Block listing – but in full listing also it is shortened.
    How can this be sorted out ?

    ihor developer

    This would require CSS or template customizations.

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

New Reply

This forum has been archived and is no longer accepting new posts or replies. Please join our new community forum for support & discussion.