Andrew Munro
Forum Replies Created
-
Forum: Plugins
In reply to: [AffiliateWP - Affiliate Area Tabs] Issue with WooCommerce my-account loginHey Renaat,
Can you check the settings for Affiliate Area Tabs? It sounds like the WooCommerce My Account page has been added as a tab. If so, that’s why the redirect is occurring. Pages assigned as tabs are meant to be private to affiliates only so any non user going to that page will be redirected to the affiliate area.
Let me know if that helps, thanks
Thanks @roach7
AffiliateWP includes a
[affiliate_referral_url]
shortcode for doing this: https://docs.affiliatewp.com/article/64-affiliatereferralurlHope that helps!
Forum: Developing with WordPress
In reply to: Adding postmeta to wp-json custom post typeThanks @timothyblynjacobs! My custom post type also didn’t have support for
custom-fields
. The post meta is now being saved correctly. Glad I found this discussion ??Forum: Plugins
In reply to: [Easy Digital Downloads - Blocks] Disable downloads block styleHappy to help!
Forum: Plugins
In reply to: [Easy Digital Downloads - Blocks] Disable downloads block styleYes, you can use the
wp_dequeue_style()
function to remove the stylesheeet from EDD Blocks:function edd_blocks_custom_dequeue_styles() { wp_dequeue_style( 'edd-blocks' ); } add_action( 'wp_enqueue_scripts', 'edd_blocks_custom_dequeue_styles', 501 );
- This reply was modified 5 years, 11 months ago by Andrew Munro.
You’re welcome, great to hear! ??
Great!
Give this a shot – I’ve tested to confirm the issue first using your theme’s CSS and also that the CSS below correctly hides that first empty ::before selector, but only for any grid of downloads outputted by EDD:
.edd_downloads_list::before { display: none; }
Ok thanks for confirming!
Let me see if I can put together some CSS that will fix the issue with the space. Are you comfortable with adding some custom CSS to your theme? You can add it to the WordPress customizer, there’s a section in there for custom CSS.
Thanks, very helpful.
1. How many downloads have you set to show? 2, or 3?
2. Are both your sites that you tested on using the same theme?
3. Can you do a quick test for me and temporarily activate another theme such as Twenty Nineteen, or Twenty Seventeen and then see if that blank box is still there?The reason for 3 above is because your theme’s CSS is outputting this rule:
div::before, article::before, aside::before, details::before, figcaption::before, figure::before, footer::before, header::before, hgroup::before, menu::before, nav::before, section::before, div::after, ul::after, article::after, aside::after, details::after, figcaption::after, figure::after, footer::after, header::after, hgroup::after, menu::after, nav::after, section::after { content: ""; display: table; }
The selector that is being executed is the div::before, a pseudo selector.
Essentially, the content line is inserting a blank element before every single div on the website. Because the Downloads grid uses CSS Grid, the empty space is being treated as part of the grid and thus becomes a grid element with the same dimensions as the others. Since there’s no content it just appears as a blank space.
The downloads shortcode in the current version of EDD does not yet use CSS grid, but it will in the next major upgrade. This is why you don’t see the blank space when using the downloads shortcode (since it uses floats to layout the downloads).
Let me know if the issue persists with the theme swap and we’ll go from there. You can change your theme back of course after we’ve confirmed the issue.
- This reply was modified 6 years, 1 month ago by Andrew Munro.
Hi there,
That’s very strange, I’ll try and fix this for you.
I’m not able to replicate this issue, would you be able to show me a live URL of the download grid with the first download missing?
Thanks!
Thanks for the suggestion!
You’re absolutely correct, the ordering does get messed up. I can see why FES resets the array now.
I’m instead going to now release an update for Featured Downloads, that will support FES when it is active. After you see the update, you can revert the change you made to FES and you’ll still see the Featured column as the last column on the downloads screen.
You’re welcome!
Absolutely,
1. In FES, go to
classes/admin/downloads/class-download-table.php
2. In thecolumns()
method on line 314, delete the following line:$columns = array();
- This reply was modified 6 years, 6 months ago by Andrew Munro.
- This reply was modified 6 years, 6 months ago by Andrew Munro.