No Code Attached Yet
avatar hahacjde
hahacjde
25 Jul 2025

Description:
When using a custom field in Joomla (e.g., a repeatable field, custom plugin field, or plg_fields_acfarticles), disabling the field label via the "Show Label" option (set to "No") does prevent the text of the label from showing, but Joomla still outputs a

  • element with an empty bullet point.

    This results in:

    A visual bullet being shown on the frontend without any text, even though the label is disabled.

    Misaligned output or unwanted indentation, especially when using list-based wrappers (

    • ).

      Expected behavior:
      When "Show Label" is set to "No", no field label markup and no list entry or bullet should be rendered. The

    • element containing the class field-entry should be omitted, or rendered cleanly without unintended visual markers.

      Actual behavior:
      A li.field-entry container is still present and causes a default list-style bullet to appear, even though the label is hidden. This requires additional CSS overrides to remove it manually:

      css

      Edit
      li.field-entry.related-services_en {
      list-style: none !important;
      padding-left: 0 !important;
      margin-left: 0 !important;
      }
      Tested with:

      Joomla! 5.3.2 (Gantry 5 template)

      PHP 8.2

      No third-party content overrides

      Steps to reproduce:

      Create a custom field (e.g., Articles - ACF Articles or Text).

      Assign it to an article.

      Set Show Label = No.

      Load the article on the frontend.

      Inspect the output HTML – an empty

    • with a bullet is still rendered.

      Impact:
      This affects layout consistency and forces users to write custom CSS for each field to avoid unwanted visual artifacts. It also goes against the intuitive expectation that disabling a label will remove all label-related output.

  • avatar hahacjde hahacjde - open - 25 Jul 2025
    avatar joomla-cms-bot joomla-cms-bot - change - 25 Jul 2025
    Labels Added: No Code Attached Yet
    avatar joomla-cms-bot joomla-cms-bot - labeled - 25 Jul 2025
    avatar chmst
    chmst - comment - 25 Jul 2025

    The label is independet from the list style and the list-style is for the unordered list as whole not for the list-item.
    When there are several fields in an article, it makes sense to have bullets.

    You can suppress the bullet (on Cassiopeia, no clue if it works in Gantry)

    
    ul.fields-container {
          list-style: none;
    }
    
    avatar hahacjde
    hahacjde - comment - 25 Jul 2025

    that is not a real solution because it will then block the list style for all and not for only this one, i tried to block it with the specific fieldname still the problem is that there will be white space there where the 'bullet' was and no way to render it to the left, tried every possible css code here

    Image

    I would expect these fields to react as 'text' not as a list. maybe the content of the field can be a list, or make it select-able to show or remove the 'list view'
    so maybe i just don't understand the logic

    avatar chmst
    chmst - comment - 25 Jul 2025

    In this case I recommend to make a template override. Template overrides are a great feature which allow you to style every single field exactly as you want.

    avatar chmst chmst - change - 25 Jul 2025
    Status New Closed
    Closed_Date 0000-00-00 00:00:00 2025-07-25 20:41:33
    Closed_By chmst
    avatar chmst chmst - close - 25 Jul 2025
    avatar chmst
    chmst - comment - 25 Jul 2025

    Closing this as it is not a Joomla bug but an individual design.

    Add a Comment

    Login with GitHub to post a comment