• willbell

    (@willbell)


    On just one page I want to modify how a class affects the page. In particular there is a column class that adds a 30px margin to the bottom of a box and I want to remove that in this particular page. How would I do that?

    Thank you,
    Will

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter willbell

    (@willbell)

    It’s for this page and it is Modernize template;

    https://www.anasysinstruments.com/bio/

    Michael

    (@alchymyth)

    your theme uses body_class() https://codex.www.ads-software.com/Function_Reference/body_class which adds page specific CSS classes to the body tag;

    from your page:
    <body class="page page-id-5139 page-template-default">

    you can use that CSS class to generate page specific formatting;

    example:

    .page-id-5139 .column { margin-bottom: 0; }

    (not sure what column box you are actually referring ot, and what CSS class this box has…use a browser inspection tool to find out.

    Thread Starter willbell

    (@willbell)

    Alchymyth,
    Excellent, thank you for this. It actually addresses a much broader range of solutions for me than this one page. I am just an artist, not a coder, so I may have difficulty with implementation. I’ll give it a shot before closing this thread.

    Thank you,
    Will

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘modify class in a page’ is closed to new replies.