Home Support General HivePress Email Attribute

Email Attribute

  • Author
    Posts
  • BrownC

    Hi again =)

    May you please make the email attribute clickable such that when people click on it on the front-end it opens in their emails.

    – Thank you

    ihor developer

    Hi,

    Please set this display format, then email addresses will be clickable:

    <a href="mailto:%value%">%value%</a>

    BrownC

    Thank you, done =)

    Last thing regarding emails. Please forgive me for not using the correct terminology, I’m learning as I go.

    On the homepage and ‘all listings’ page, I’ve set the email to be visible on the posts (before you click on the post) i.e. block (secondary)

    but the email runs over the block, how do I make it fit in the block?

    ihor developer

    If possible send a link to this page, maybe there’s a simple CSS snippet for fixing this.

    BrownC

    The page isn’t published =( So I can’t send a link

    ihor developer

    You can try using this CSS snippet, it should break long email addressed into multiple lines:

    .hp-listing__attributes--secondary hp-listing__attribute span {word-break:break-word;}

    BrownC

    I added this to the ‘additional css’ section and it did not work. There’s a pop-up that says ‘expected: normal | keep-all | break-all”

    ihor developer

    Please ignore this warning, you can still click “Publish” and this snippet will be saved. It should break long texts without spaces (like emails) into multiple lines.

    BrownC

    Tried it, published and refreshed the page, unfortunately still doesn’t work

    ihor developer

    Sorry, there was a missing dot:

    .hp-listing__attributes--secondary .hp-listing__attribute span {word-break:break-word;}

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

You must be logged in to reply to this topic.

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.