jezthomp
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Loading a default pattern per custom post typeCould you not just do this with another post’s content as well?
Setup a ‘master’ page that you’re happy with, get that page/post id then re-use its content each time you create a new post/page?Anything wrong with this method?
add_filter('default_content', 'cpt_portfolio_default_content', 10, 2);
function cpt_portfolio_default_content($content, $post) {
if ($post->post_type === 'cpt-portfolio') {
// Replace 5055 with the ID of your reusable block or draft page
$pattern_post_id = 12559;
$pattern_post = get_post($pattern_post_id);
if ($pattern_post) {
$content = $pattern_post->post_content;
}
}
return $content;
}This has broken the ability to auto update or even manually update.
How do i permanently remove any remaining files please, I’ve deactivated and deleted the plugin files but it is still not letting me update?
I’m building locally at first on MAMP and unsure whether the client will want an SSL at the final point, does that mean cannot use this plugin until there is an SSL associated?
Looks like it was a server problem as you suggested, they responded with this…
This looks to have been an nginx misconfiguration error – the syntax for setting up a default site is to use an underscore “_” character for the server_name parameter.
I have added the domain to the server_name parameter, with the addition of the “_” to catch all other requests.
Okay thank you, i’ll ask them and get back.
Forum: Plugins
In reply to: [Autoptimize] How to remove type attributes?Can anyone help with how to use the autoptimize_html_after_minify to remove the
type
from the javascript tag please?Thank you Mark.
How do i know what cookies are used on my site to add to the plugin?
I’ve looked on the web inspector under Storage > Cookies and have the following names…
_ga
_gid
caosLocalGa_gid
caosLocalGaSo i would ‘add new’ the above names?
How do i know if these are persistent, session, or third-party, duration, sensitivity, necessary or non-necessary?
Forum: Plugins
In reply to: [WooCommerce] Whats happened to the image sizes, broken?Sorry, yes that answered the question thank you.
Forum: Plugins
In reply to: [WooCommerce] Whats happened to the image sizes, broken?What about the image size for the thumbnail scroller, they are suddenly massive.
Or is this to be controlled via css moving forward?
Forum: Plugins
In reply to: [Postie] Limit posts to specific @email address?When i do a default setup any email could post a post, i tried my own email and another google email and both submitted to the draft.
I want to limit it to specific email addresses to limit spam almost entirely.
Forum: Plugins
In reply to: [WooCommerce] Change Title of Order to Order Number in My Account page?Works perfectly thank you ??
Forum: Plugins
In reply to: [Autoptimize] Enqueue Optimised CSS after WooCommerce CSS?Perfect thank you so much ??
Forum: Plugins
In reply to: [Autoptimize] Enqueue Optimised CSS after WooCommerce CSS?Thank you, thats very kind.
A pastebin of the html here, with the url edited..
Thanks again ??
Forum: Plugins
In reply to: [Autoptimize] Enqueue Optimised CSS after WooCommerce CSS?I’m afraid not as its in development.
The html prints out a header tag and that warning appears at the bottom in the source?
Forum: Plugins
In reply to: [Autoptimize] Enqueue Optimised CSS after WooCommerce CSS?Thankyou.
I tried adding your code and got the following error, do i need to put it anywhere specific?
<link type="text/css" media="all" href=“site-bit.com/wp-content/cache/autoptimize/css/autoptimize_4a23bc6078aa709859e90f1dfcb22a91.css" rel="stylesheet" /><!--noptimize--><!-- Autoptimize found a problem with the HTML in your Theme, tag "head" missing --><!--/noptimize-->