ees2025
Forum Replies Created
-
Hey @patrickposner – thanks for the reply. Unfortunately I can’t share the live WordPress site URL or credentials to it. I just tried generating a static version using absolute URLs, but issue of the missing active class persists.
I can tell you that the active class is applied by first matching the current page URL against the URL of each of those sub nav items. This is done in the PHP template for those pages with some simple variables as follows:$current_url = trailingslashit(home_url(add_query_arg([], $_SERVER['REQUEST_URI'])));
// Loop through the rows of data
while (have_rows('collab_subnav')) : the_row();
$subnav_link = get_sub_field('nav_link');
if ($subnav_link):
$subnav_url = trailingslashit($subnav_link['url']);
$is_active = ($subnav_url === $current_url);These classes were correctly applied back when we were using WP2Static, so I’m trying to figure out how to make it work properly with Simply Static. Any other thoughts on what else we could try?
Hello – following back up here as it’s been almost 2 weeks.
Can anyone point me in the right direction here? Here is an example of the static export page with the issue: https://ericelliot.com/dev/sra/collaboration/start/index.html
As you scroll the page, you’ll see there is a sub nav with several nav items (Overview, Process, Apply, FAQ, Recipients). These links have an “active” class applied to them for whichever is the current page on the WordPress site. However as you can see in static export, those classes are not applied to the current menu option. Any insight would be appreciated, as this is a pretty basic / standard feature of WordPress navigation menus. Thanks!Forum: Plugins
In reply to: [Simple Shortcode for Google Maps] Plugin broken?Thank you! This is now working correctly with an unrestricted key and no geokey.
Now I will set up the proper restrictions and test again and let you know.Forum: Plugins
In reply to: [Simple Shortcode for Google Maps] Plugin broken?Yes the API key I created has no restrictions on it right now because it was created only for testing purposes. I used New York City to make a simple demo for testing purposes that was exactly the same as what’s shown in the documentation. (I do agree the documentation could be a bit clearer, perhaps by including a shortcode example with the geokey, or explaining which types of addresses would require the geokey).
So with all that said, this still isn’t working for me. We were using this just fine on a production site until about a month ago, it seemed to have stopped working. I have now setup a test on a personal site with no traffic to try to figure out the issue. Any other thoughts as to what the issue might be?
Here’s a sample page, that uses only the Twenty Twenty Four theme has no other plugins activated: https://eesblueprint.wpenginepowered.com/one-service-red-service/