php - strip away previously called </head> tag
Get the solution ↓↓↓I have created a custom page template in WordPress and assigned it to a page, i have also included the Wordpress header in the template with "<php get_header(); ?>".
However the custom page template has it's own header which means i now have two headers like this:
<head>
.....Header content from WordPress...
</head>
<head>
....header content from custom template.....
</head>
I want to strip the closing"</head>"
tag from WordPress, such that when ditch the opening"<head>"
from the custom template, i will get this:
<head>
.....Header content from WordPress......
....header content from custom template.....
</head>
I need a script in JavaScript or PHP that i can add right before the custom template opening"<head>"
tag to strip away WordPress closing "" tag so that both can appear combined.
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: git was not found in your path, skipping source download
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.