• catquecaos

    (@catquecaos)


    I would like to remove the link from the Featured sub text in the Featured Text Area on the Custom Homepage, since I just have a piece of info there that I don’t want to lead to another page.

    I realize that by simply leaving the URL space blank, the link only leads back to the homepage, but that’s confusing for visitors.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You can create a child theme, copy the header.php file into the top directory of that theme and modify it.

    For the Adamos theme header.php file, you want to change this code:

    <p><a href="<?php echo esc_url( get_theme_mod( 'header_one_url' ) ); ?>"><?php echo esc_html(get_theme_mod( 'featured_textbox_text' ) ); ?></a></p>

    to this:

    <p><?php echo esc_html(get_theme_mod( 'featured_textbox_text' ) ); ?></a></p>

    Basically you are removing the HTML and PHP that displays the text as a link.

    Just to clarify, you should not change the Adamos theme header.php file directly. Create a child theme first, then copy header.php to the child theme and modify header.php in child theme.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove link from Featured sub text in Featured Text Area on Custom Homepage’ is closed to new replies.