Support » Plugin: Insert Headers and Footers by WPBeginner » Adding Shortcode or PHP

  • Is it possible with this plugin to add a shortcode to a header and/or php code? I tried the <? ?> format but it didn’t seem to work. (I’m trying to add a breadcrumb to the end of the header.)

Viewing 3 replies - 1 through 3 (of 3 total)
  • No one answers? I need to know this, too.

    Thread Starter samato88


    No answers. So I’m guessing the answer is “no, not possible with this plugin”.

    This plugin, as far as I understand, is about injecting pieces of CSS and/or JS into the HTML that your site produces.
    But it’s NOT able to place visible content in various places on the screen. The html HEAD tags are before anything is shown on screen. (the visible stuff is the BODY part that comes after HEAD).
    The Footer part might show something visible, but it would by default end up at the very bottom of your page, probably even after the visual footer.

    If you want to insert something like breadcrumbs, then you may need to create a Child Theme and in it put an edited version of the relevant template file (often called header.php, but it can have other names).

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.