Okay
  Public Ticket #2238504
WPBakery wont use given ids for objects
Closed

Comments

  •  4
    dowegmbh started the conversation

    Hi,

    I am building a page and have given my headlines id values.

    in the wordpress code, the elements have got a el_id="my-id-1" attribute.

    I expected the html outcome to be <h1 id="my-id-1">Headline 1 </h1>

    but WPBakery doesn't use the id value in my html at all. There is no id="my-id-1" in the entire documents.

    Is this a common wpbakery error? Does it work on your wordpress-installations?

    Felix

  •  8,992
    Tahir replied

    Hey Again,

    There is an ID Option available in Row Settings here : http://prntscr.com/q8hpun which you can use to target the element inside it.

    Best


    ThemeNectar Support Team 

  •  4
    dowegmbh replied

    Ok, I solved it. WP is not adding the IDs to Text blocks, which is what confused me.

    If you wish to create a hash url anchor then you have to - as Tahir suggested - use the row's ID field.

  •  8,992
    Tahir replied

    The Text Block ID are intentionally disabled since they cause issues with the smooth scroll anchor script and therefore only the Rows can have ID's. 

    Best


    ThemeNectar Support Team 

  •   dowegmbh replied privately
  •  8,992
    Tahir replied

    Hey Again,

    In that case use a Inner Row and set a ID in there : http://prntscr.com/qbh6gu .

    Best


    ThemeNectar Support Team