AAD B2C How to hide "heading"

GrantGreen 20 Reputation points
2023-07-12T01:09:01.4333333+00:00

Hi,

I am using Custom policy.

Recently I update page layout version as below.

・selfasserted:2.1.4→2.1.20

・unifiedssp:2.1.5→2.1.9

I speculate display setting of "heading" becomes default.

I would like to hide "heading" with custom policy.

Could you tell me the way to hide?

Thank you.

Microsoft Security | Microsoft Entra | Microsoft Entra External ID
0 comments No comments
{count} votes

Accepted answer
  1. James Hamil 27,221 Reputation points Microsoft Employee Moderator
    2023-07-12T19:26:41.3833333+00:00

    Hi @GrantGreen , to hide the heading with a custom policy, you can use CSS to set the display property of the heading element to "none". You can add the CSS to your custom policy by modifying the ContentDefinition element in your custom policy. Here's an example of how to do this:

    1. Locate the ContentDefinition element in your custom policy that corresponds to the page you want to modify (e.g., api.selfasserted).
    2. Add a new DataUri element with a reference to your custom CSS file. For example:
    <ContentDefinition Id="api.selfasserted">
      <DataUri>urn:com:microsoft:aad:b2c:elements:contract:selfasserted:2.1.20</DataUri>
      <Metadata>
        <Item Key="CustomCSS">https://yourdomain.com/path/to/your/custom.css</Item>
      </Metadata>
    </ContentDefinition>
    

    In your custom CSS file, add the following rule to hide the heading:

    css
    .intro .heading {
      display: none;
    }
    

    Replace the URL in the example with the actual URL of your custom CSS file. This will hide the heading on the self-asserted page. Please let me know if you have any questions and I can help you further.

    If this answer helps you please mark "Accept Answer" so other users can reference it.

    Thank you,

    James


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.