SYPOMark
Forum Replies Created
-
Forum: Plugins
In reply to: [Random Content] Using shortcode in template fileHi Jeremy,
Thanks for getting back to me.
When using do_shortcode in a php template file, it just outputs nothing at all.
With kind regards,
Mark
- This reply was modified 5 years, 5 months ago by SYPOMark.
Forum: Plugins
In reply to: [Post grid and filter ultimate] Exclude current postHi @patelketan
Thanks for looking at this.
I’ve managed to do it with a little bit of customisation to the code.
Regards,
Mark
Forum: Plugins
In reply to: [Post grid and filter ultimate] Custom post type post grid filterHi @patelketan
Thank-you for your help, and I am sorry for taking so long to reply.
I was able to implement what I was after with a built-in function of the Divi theme.
Regards,
Mark
Forum: Reviews
In reply to: [OceanWP] Looks nice, but…Hello @oceanwp.
Doing as you suggest is not something I’ve tried. But, for our customer, it turns out it’s not relevant: they want all posts belonging to a particular category to appear on the page at once.
Is there as easy a fix for this issue?
If I go to Appearance > Customise > Blog > Blog Entries and choose from the dropdown under Blog Style, ‘Large Image,’ there is no displayed setting for number of columns. So, I assumed there would be only one column set. That was a mistake. I discovered that the styling given to the Blog Entries page DID depend on a column count setting … found under a DIFFERENT Blog Style choice: that of Grid. This is even with the styling for any Blog Style SWITCHED OFF under Theme Panel > Scripts & Styles.
Very frustrating.
Forum: Themes and Templates
In reply to: [OceanWP] PaginationHi Amit,
Thanks for your reply.
The first part of your reply was helpful. However, I have already tried installing the child theme, and doing so overrode all the settings I’d put into Customizer. So, I uninstalled it and am styling things the long way. Adding my own custom styles is always a struggle with WordPress themes: there’s so much already in place that is often hard to find that gets in the way, and needs resetting before the site will take any notice of what I’ve written. But, with OceanWP, it is worse than most.
Which file would I add your code to?
Lastly, I’ve noticed, that if I had Blog pages show at most set to a lower number than there are posts, pagination gets created, but, clicking to go through to the next page results in a 404 error screen. This is a page that OceanWP has presumably created, based on pagination rules and the number of posts. But attempting to visit this page results in it saying it doesn’t exist!!!! Not good.
This is yet another WordPress theme that looks good, but functions badly.
With kind regards,
Mark @ SYPO
Hi RavanH,
The ONLY issue I had was with the 404 pages coming up. So, now you’ve fixed that, the lightweight plugin you’ve come up with is great!
Thanks very much for your swift work on this. It is very much appreciated.
Can I change my review?!?
Sorry, realised that could have come across a bit bluntly!
I mean, visit our site and try out a search(!)
Try it yourself…
Thanks for that. It fixed the 404 redirects nicely.
The deadline’s Monday. And, although Relevanssi sometimes throws results that don’t contain the search term, without it A LOT of pages are missed altogether. And, the 404 issue happens with pages that DO contain the search term.
The site in question is https://sypotest8.co.uk. I’ll leave both Relevanssi and your plugin switched on for the next half hour for you to take a look.
Sadly, without it, there are hardly any search results anyway. Just tried it again with both switch on and the FIRST search result is fine, any others are not.
Hi RavanH,
Thanks for the reply. It would be good if there was a fix.
I am using First-Mag as the theme and plugins (it’s quite a list):
- Advance Custom Themes
- Arconix Shortcodes
- Clean My Archives
- Contact Form 7
- Custom Sidebars
- Display Posts Shortcodes
- Easy Updates Manager
- Email Login
- Kirki Toolkit
- Obfuscate Email Address
- Relevanssi
- Shortcode Widget
- Simple Event Planner
- Subscribe2
- TinyMCE Advanced
- WordPress Slider Plugin
- Yoast SEO
I probably would normally have requested help, but I’m running to quite a tight deadline just now!
Forum: Plugins
In reply to: [Arconix Shortcodes] Scrolling to the top of an open accordionHi John,
Thanks for your message.
Including that code in the next release would be fine. It’s great that a solution has been found for this as – searching through Google – it seems that this has been requested a few times before.
I’d love to be kept up to date with the new release.
With kind regards,
Mark
Forum: Plugins
In reply to: [Arconix Shortcodes] Scrolling to the top of an open accordionHi John,
Thanks for your reply. It’s always impressive when the author of a plugin replies.
My knowledge of jQuery is probably poorer than your own, but, thankfully, one of my colleagues knows about this stuff and he’s come up with something that works. I thought I would share in case it helps anyone else.
In
arconix-shortcodes.min.js
, immediately after.slideToggle()})})
, add the following (expanded for readability):,jQuery('.arconix-accordion-title').click(function(){ jQuery('html, body').animate({ scrollTop: jQuery(".arconix-accordion-title").offset().top }, 400)} )
The
400
is the number of milliseconds it takes for thescrollTop
animation to take place. I’ve made it 400 to match the expansion of the accordion, to give the effect of staying in place whilst the accordion opens.To see it in action, visit: https://sypotest8.co.uk/explosive-ordnance-disposal/remotely-operated-vehicles/
With kind regards,
Mark
Forum: Plugins
In reply to: [WooCommerce] Adding add to cart button to product category pagesHi Mike,
Thanks for your message.
What I’ve got in functions.php at the moment is:
add_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 20 );
making the Add to Basket button show up everywhere. To keep the button from showing up on anything other than product category pages, I’m using CSS.
Adding the jk_shop function, with the conditional tag included, just stops the buttons showing up at all.
With kind regards,
Mark