Quantcast
Channel: User StephenMeehan - Stack Overflow
Browsing all 36 articles
Browse latest View live

Comment by StephenMeehan on Remove dates in the past in php array?

Thanks, this works but print_r($dates_list); displays all the foreach loops. Only the last loop shows the array with the past date removed @Robo Robok answer outputs just the array with the past date...

View Article



Comment by StephenMeehan on Filter dates in a nested php array

Thanks, but when I print_r($value); it only outputs todays date? Array ( [event_date] => 2020-03-13 00:00:00 [event_start_time] => 20:10:00 [event_end_time] => 20:10:00 )

View Article

Comment by StephenMeehan on Loop over past dates and remove in php

Works great! Thanks!

View Article

Comment by StephenMeehan on Pause html video that's on autoplay?

Thanks, I've mostly got it working now. Would you mind taking a look at my updated answer? With a link to the fiddle.

View Article

Comment by StephenMeehan on Pause html video that's on autoplay?

Cheers, I've updated my question. I've nearly got this working. Would you mind taking a look at the JS Fiddle?

View Article


Comment by StephenMeehan on Serve alternative CSS for IE11 and below using...

I can't see how I'd adapt it, so it works as per my example.

View Article

Comment by StephenMeehan on Serve alternative CSS for IE11 and below using...

This is great, many thanks.

View Article

Comment by StephenMeehan on htaccess - does not fall inside current context...

I've been trying different variations, must have copied and pasted the wrong rule in the example. Neither work?

View Article


Hide a list when clicking outside (part 2)

The code below partly works, clicking the button toggles the menu. When the menu is visible I can click anywhere to close it.But, if I click the button when the menu is visible it hides and then shows...

View Article


Remove en from a URL with htaccess

I have this page structure, for a multi-language website:- Home En (/en) - Page1 En (/en/page1) - Page2 En (/en/page2)- Home Es (/es) - Page1 Es (/es/page1) - Page2 Es (/es/page2) The default language...

View Article

Handle a PHP error message when a second node doesn't exist?

Hope someone can help with thisI'm using this to grab the first part of my URL$page_url = perch_page_url(['include-domain' => false,], true); // Output the URL of the current page, minus...

View Article

Find duplicate slugs with regex?

I'm trying to use regex to highlight the circular redirects in these 301 redirects. I'm using Sublime Text, and only need to highlight them, so I can manually edit.The example below is from a much...

View Article

Trying to understand Child combinator in CSS

I want to style just the first level of li, it looks like a child combinator should work, but as the demo below shows every li is red. I would expect only the first level (not nested) li to be styled...

View Article


Replace placeholder text in Google Sheets

What would be the best way to replace [placeholder] text in Google Sheets?I've created a demo Google Sheet here.I'd like to be able to use the word 'Coke' in B1 and replace all the [Brand-Name]...

View Article

Answer by StephenMeehan for Accessible Index Page Configured wrong - How to fix?

Adding this to the htaccess file fixed the issue.Redirect 301 /index.html https://website.co.uk/Redirect 301 /index.php https://website.co.uk/The error is no longer shows in the report.

View Article


Image may be NSFW.
Clik here to view.

Answer by StephenMeehan for Too many redirects?

Fixed!Within the ServerPilot control panel there is an option to force a HTTPS redirect. This was conflicting with any redirects I was using in my htaccess file.Turn 'Redirect to HTTPS' off and use the...

View Article

Image may be NSFW.
Clik here to view.

Too many redirects?

I've used the 'Redirect mapper' tool by Varvy.com, and it's highlighted an issue with my www redirect. I'd like there to be only one redirect, but the tool shows two redirects. See screenshot...

View Article


Answer by StephenMeehan for Hreflang tags on both English and German versions...

The answer is... Yes.Great explanation by Ahrefs herehttps://ahrefs.com/blog/hreflang-tags/

View Article

Hreflang tags on both English and German versions of a website?

I'm working on a multi-language website, English and German. I'm using the hreflang tags below on the German website.<link rel="canonical" href="https://www.website.com/de"><link...

View Article

Wrap apostrophes around string?

I'm trying to wrap apostrophes around a string in PHP.I've shown the result of each step. I can't figure out how to wrap '' around each name? I can get this far Listen Up, Case Studies, Publications...

View Article
Browsing all 36 articles
Browse latest View live




Latest Images