ag1233
Forum Replies Created
-
if this is in Linux (possibly Windows as well), I think adding in wp-config.php:
define( ‘FS_METHOD’, ‘direct’ );
helps in that it uses form upload to upload files directly on the web.
But that is not all, normally in apache, the web server run under a user / group : apache / www-data etc.
This particular user / group needs to have write access in the wp-content/uploads folder.
allowing uploads is always a risk, there are no reasonable mitigation other than to perhaps scan the uploaded fiiles to identify threats if possible. denying uploads would likely mean preventing images/media etc from being uploaded.Forum: Plugins
In reply to: [Contact Form 7] 500 Errors with new Filesystem Classif this is in Linux (possibly Windows as well), I think adding in wp-config.php:
define( ‘FS_METHOD’, ‘direct’ );
helps in that it uses form upload to upload files directly on the web.
But that is not all, normally in apache, the web server run under a user / group : apache / www-data etc.
This particular user / group needs to have write access in the wp-content/uploads folder.
allowing uploads is always a risk, there are no reasonable mitigation other than to perhaps scan the uploaded fiiles to identify threats if possible. denying uploads would likely mean preventing images etc from being uploaded.Forum: Fixing WordPress
In reply to: Removing White Space from Storefrontwell, i’m not too sure about interactions with a child theme as i’m using the woocommerce storefront itself. i observed that it worked in my case.
what i did is to do a view source of the html page and find the tags with the class=”site-content”, class=”site-main”, class=”storefront-product-section” attributes in the html tags and i maintained the css as above which changes the padding / margins etc.
do not try the instructions on your production web below as it may change the look and feel of it, do so in a ‘development’ or test instance.
to identify if the css is indeed working in my case when i maintain it in the customizer in storefront theme in additional CSS, i actually did something like:
.site-main { border: 1px; border-style: solid; border-color: blue; }this would draw a rectangle/border around the element of interest, you could do the same for the other elements e.g. .storefront-product-section, .site-content etc. with those rectangles visible, i’d then try to tune the padding and margins.
if you insert the css for the borders above and nothing happens, it may then be related to your child theme which i’m not too sure how that would work.
initially after i get the page to show the rectangles / borders, i still have various issues and with many trial and errors i finally observed how the padding and margins css influenced the page display, but in my case it goes from too wide to too cramped and i added some padding e.g. 1em etc to ease the congestion
my site is only a test site and i’m trying out the woocommerce storefront
https://xyzdemo.000webhostapp.com/Forum: Fixing WordPress
In reply to: Removing White Space from Storefrontto change the padding, sections margins and to pack the storefront products categories display closer you could try
.site-content { padding-top: 0px; padding-bottom: 0px; position: relative; } .site-main { margin-bottom: 0px; } .storefront-product-section { margin-bottom: 0; }in the additional CSS in customizer
if it gets too cramp change the values of padding and margins in the css or remove the relevant codesForum: Fixing WordPress
In reply to: Thinner Footeras i’m using a storefront theme, i noted various css components can also be tuned
but that aggressively flushing / removing the padding may make the texts and layout too flushed against an edge etc. there are apparently various components in the footer which probably ‘spaced out’ the items.site-footer { padding-bottom: 5px; padding-top: 20px; } .site-info { padding-bottom: 0px; padding-top: 0px; } .footer-widgets { padding-top: 0px; padding-bottom: 0px; }