cut-off words on an article

  • Unknown's avatar

    Good morning !

    I am contacting you because I have a problem with cut-off words on almost all the sentences of my articles (https://b2cmediaa.wordpress.com/2022/01/19/entretien-avec-sofian-fanen-journalist-et-auteur-du-livre-boulevard-du-stream/) and I can’t solve this problem. I use ‘paragraph’ blocks and my site’s template is Cyanotype.

    When I convert my text in ‘preformatted’ mode, the words don’t get hyphenated, but this mode doesn’t allow me to format the text, or use the correct font, or bold or italicize, so it is not a satisfactory solution.

    I take this opportunity to talk about another problem, certainly related to the template used: I would like to widen the text column which is a bit narrow. Is there a solution or is it irresolvable?

    Thank you for your help !
    Alicia

    WP.com: Yes
    Correct account: Yes

    The address of the blog concerned is b2cmediaa.wordpress.com.

    The blog I need help with is: (visible only to logged in users)

  • Hi Alicia,

    Whether or not words are hyphenated at the end of the line is controlled by the CSS code in your theme, and Cyanotype specifically is designed to hyphenate words rather than having them break to a new line. You can see the same thing happening on the theme’s demo site at https://cyanotypedemo.wordpress.com/readability/

    One way around it, as you’ve discovered, is to use preformatted text – <pre> is a special HTML tag used to display text exactly as you type it, i.e. it doesn’t strip out spaces like HTML normally does with text. You can add formatting like bold and italic inside a preformatted block, but you’d need to add it as actual HTML tags, i.e. <strong></strong> for bold, <em></em> for italic, etc.

    The other way around it is to override the CSS code that makes your theme do this in the first place. You can do this by adding custom CSS code to the theme on our Premium Plan and higher.

    I would like to widen the text column which is a bit narrow. Is there a solution or is it irresolvable?

    This can also be done using custom CSS code.

    https://wordpress.com/en/support/editing-css/

    Let me know if you have any questions about this.

  • Unknown's avatar

    Hey Kokkieh,

    Thank you very much for the answer.

    Okay, understood.

    Also, I was wondering if is would be possible to stay in preformatted text and add HTML for changing typeface and not only bold and italic ? Because I’ve tried but with no result.

    Thanks again
    Alicia

  • Unknown's avatar

    Also, I was wondering if is would be possible to stay in preformatted text and add HTML for changing typeface and not only bold and italic ? Because I’ve tried but with no result.

    For security reasons, not all HTML tags are allowed. Please check the list of supported HTML tags for the ones you can use.

    I hope that helps!

  • The topic ‘cut-off words on an article’ is closed to new replies.