6/25/2019 0 Comments Wordpress Category Hiding CodeWordPress themes use different variations of code to display the author name. You will need to locate the code responsible for showing the author’s name in your theme files and delete it. Most common locations to find this code are single.php, content.php, archive.php, and index.php files. I think he was asking to hide only the wordpress version not the entire source code which is obviously not possible, even if right click is blocked, anyone can download firebug firefox plugin and see the source code. But if your intention is to hide the fact that you are using WP then it is possible. I am trying to hide the header on a specific page in WordPress. I know that I can do this using CSS. The page id as displayed in the dashboard is: The page has a header without an id or class (not sure who built it). But I can hide the header with: I can't seem to hide the header on the specific page. I have tried:
I have also tried the same with # and postid etc etc. Is there another way to hide the header on that page? Failing that is there a way I can hide the header after it has been called in the template? I have created a custom template for the page but im not sure of the php to use to hide it. If I remove The website is here: Website
Gavin ReynoldsonGavin Reynoldson
4 AnswersYou say you have created a template for this specific page. In which case you can use jQuery to hide the header. Add this to the end (or start) of your page template. You would probably want to wrap this inside something like a
Phill HealeyPhill Healey
You can modify your Page/Post ID method: Page/Post Title method: Either of these methods should work. *Not tested.
cosmoonotcosmoonot
You can do this by checking the page name. If you want more details please read the wordpress official documentation. It will helpful for you.Read wordpress official documentation
Giulio BambiniGiulio Bambini
This works for me. A simple trick: Check your style class name in your header.php in the top example:> And place this code in the top from your php template or page.
Bhargav Rao♦
Speedy222Speedy222
Not the answer you're looking for? Browse other questions tagged phpcsswordpress or ask your own question.Related Articles
The WordPress dashboard gives you a few header customization options for your business’s website, but even if you choose to hide the header image, the default settings still place text at the top. Getting rid of this text requires a little custom coding, but nothing that requires an advanced understanding of CSS. With just a few tidbits of new code, you can hide all remaining parts of the WordPress header, giving your business’s page a clean and minimalistic aesthetic. 1.Log in to your WordPress dashboard, click the “Appearance” menu and select “Header.” 2.Click the “Remove Header Image” button. Your current WordPress header image is removed, but the image remains saved in your WordPress file library for future use. The text header still appears in most themes, so you have to remove it manually. 3.Click on “Custom Design” from the left-hand column if you use WordPress.com, or click “Editor” for WordPress.org. 5.Scroll the CSS code and find all references to the text-based header. These appear as “h1,” “header,” “headerimg” or “description.” 6.Click inside the brackets next to your header code, then type “display:none;” (omit the quotation marks). For example, change code that reads “h1 {font-size: 200%; color: black; font-family: arial}” to “h1 {display:none; font-size 200%; color: black; font-family: arial}.” This hides the text, but retains the code in case you ever want to erase the new code and show the header again. 7.Click “Save” for WordPress.com or “Update File” for WordPress.org. Your entire header image and text should be hidden. Tip
References (2)
About the AuthorRichard Kalinowski began writing professionally in 2006. He also works as a website programmer and graphic designer for several clients. Kalinowski holds a Master of Fine Arts from Goddard College and a Bachelor of Science in education from the University of Wisconsin-Whitewater. Photo Credits
Choose Citation Style
Kalinowski, Richard. 'How to Hide the Header in WordPress.' Small Business - Chron.com, http://smallbusiness.chron.com/hide-header-wordpress-46404.html. Accessed 18 June 2019.
Kalinowski, Richard. (n.d.). How to Hide the Header in WordPress. Small Business - Chron.com. Retrieved from http://smallbusiness.chron.com/hide-header-wordpress-46404.html
Kalinowski, Richard. 'How to Hide the Header in WordPress' accessed June 18, 2019. http://smallbusiness.chron.com/hide-header-wordpress-46404.html
Note: Depending on which text editor you're pasting into, you might have to add the italics to the site name.
0 Comments
Leave a Reply. |