I am trying to modify http headers with your plugin.
So, I have created a simple snippet which do this:
add_filter('wp_headers', 'my_custom_headers');
function my_custom_headers($headers) {
// Add X-XSS-Protection header
if (!isset($headers['X-XSS-Protection'])) {
$headers['X-XSS-Protection'] = '1; mode=block;';
}
// Add X-Content-Type-Options header
if (!isset($headers['X-Content-Type-Options'])) {
$headers['X-Content-Type-Options'] = 'nosniff';
}
return $headers;
}
But, $headers variables only contain “Content-Type” value.
In fact I would like to be able to check if headers have already being sent (from .htaccess by example) and be able to modify them.
So, what is the way to get http headers in order to control them with WPCode snippet?
Thanks in advance for your help and have a nice day.
]]>First of all, thank you so much for giving this brilliant theme away for free.
Now… I have installed both the main BOYO theme and the Child theme, which I have installed. But I was wondering which file do I need to alter in the Child theme, to show Google font Alice?
Peace be with you.
Mike.
I’m trying to change some sections of my form by going to personalized CSS but I can’t succeed.
Right now on my website, when we click on ? Contact Us ?, we see the form but some fields of the form are below the fold and we need to scroll to fill the form entirely and send it.
What I would like to do is to reduce some fields (reduce the message box, reduce the space between the ? close ? and ? who are you ? fields, etc.) so that users can see the entire form (until ? submit ? button) above the fold (without scrolling).
Can you let me know how to do it?
Thanks a lot!
]]>I am trying to modify some strings for my Book Publisher theme that I installed yesterday. I’ve had mostly good luck, but need some help still. Any help would be appreciate, and TIA.
1.) On the homepage, the designers made it say, “0 comment,” which drives me nuts. Which .php file do I need to modify to get rid of the comment count on the homepage? I’ve looked, but cannot find any.
2.) I want to post a link to the category for my blog. Is there a way to modify it so that the results page doesn’t say, “category:”?
3.) I can’t seem to find the excerpt option in my editor so that I can make the page break on the homepage disappear. Right now, it just cuts the excerpt off mid-sentence and I’d like it to look prettier.
Again, any help is much appreciated!
]]>If I want to use a players shortcode to show their statistics, is there a way to modify the shortcode, like we can with player lists, league tables etc, to only show specific columns? As I don’t want it to effect the main player page with their stats, just where I post the shortcode.
Thanks
So a visitor can only “revoke” consent but never “extend” it.
Suggestion: Instead or additionally to “Revoke” a “Reset” (or “Modify”) button would be perfect, which brings up the banner once more to allow visitors to change their decision.
]]>How to modify social icons in posts footer? For example Add o remove a social icon.
Thanks.
]]>Using the ‘Ad blocking recovery’ works without issue it just fails on the error protection message?
Assuming it’s something to do with the code syntax?
]]>I am trying to import 2 columns with the author’s description and image.
Need to place the columns in the top of posts in author archive page.
Thank you!
]]>