Bunny Blake
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Twenty Twenty-Three] trouble styling nav submenuPerfect, thanks! I was trying to overthink it and didn’t even consider using a media query.
I think the “correct” way to do it is to set up typography in the theme.json file. I am new to this theme but had the same situation where I wanted to reduce the sizes of the largest headings. I copied the “fontSizes” section from the parent theme’s theme.json, into the child theme’s theme.json. I was able to turn down the font sizes associated with the “XL” and “XXL” buttons.
"fontSizes": [ { "fluid": { "min": "0.875rem", "max": "1rem" }, "size": "1rem", "slug": "small" }, { "fluid": { "min": "1rem", "max": "1.125rem" }, "size": "1.125rem", "slug": "medium" }, { "fluid": { "min": "1.75rem", "max": "1.875rem" }, "size": "1.75rem", "slug": "large" }, { "fluid": false, "size": "1.9rem", "slug": "x-large" }, { "fluid": { "min": "2rem", "max": "4rem" }, "size": "4rem", "slug": "xx-large" }
sorry for the bad formatting, but if you look at the parent theme.json you should be able to get an idea of what’s possible (including setting the font weight).
- This reply was modified 1 year, 5 months ago by Bunny Blake.
I got confused and this is all irrelevant, this thread can be safely deleted.
Forum: Plugins
In reply to: [Image Photo Gallery Final Tiles Grid] Sudden CDN slowdownThat works perfectly, thanks for the quick response!
Forum: Plugins
In reply to: [WP Job Manager] WordPress + wp_job_manager upgrade broke GET queries?Thanks for the response! Marking this thread as resolved is fine with me.
Forum: Plugins
In reply to: [WP Job Manager] WordPress + wp_job_manager upgrade broke GET queries?Thanks so much! I’m okay for now rolled back to the previous version of the plugin, please let me know if I can provide anything else helpful from this end.
Forum: Plugins
In reply to: [WP Job Manager] WordPress + wp_job_manager upgrade broke GET queries?rohitkalra: yes, that site is built entirely from wp-job-manager and a custom theme I wrote from scratch. I set up the different custom fields via code in the theme’s functions.php and then designed the output mostly through template overrides.
Forum: Plugins
In reply to: [WP Job Manager] WordPress + wp_job_manager upgrade broke GET queries?Okay I found that rolling back to 1.29.3.1 (the latest pre-1.3x version) fixes the problem. So I’m gonna do that on the production server for the time being.
Forum: Plugins
In reply to: [WP Job Manager] WordPress + wp_job_manager upgrade broke GET queries?Hi!
I am getting the full set of results for all queries against search_category and search_keyword.
You can see this behavior on the live site she-freelances.com. The sidebar links and search box are broken (used to work fine) but if I go into the Inspector tools style editor, go to line 53 of style.css and change the search_jobs div to display:block (making it visible at the top), I can keyword search and category search okay from there.
But it seems like anything I pass as a GET query (/mysite/?var=whatever) is getting ignored. Nothing is showing up in debug.log as an error.
Forum: Plugins
In reply to: [WP Job Manager] WordPress + wp_job_manager upgrade broke GET queries?Am I possibly running into this issue?
https://github.com/Automattic/WP-Job-Manager/issues/1804
- This reply was modified 5 years, 7 months ago by Bunny Blake.
Forum: Plugins
In reply to: [WP Job Manager] WordPress + wp_job_manager upgrade broke GET queries?Okay, update: I discovered that if I enable the search_jobs div to display the built-in search controls, I’m able to search by category / keyword okay there. But when I try to use the GET query links in the sidebar, the search silently fails, it displays the whole dataset.
I haven’t yet looked at how the search_jobs builtin form works internally so I’m not sure what’s different.
I found the “dealing with troublesome themes” page on the wp-job-manager site, which says problems are sometimes due to a faulty single.php template, but I’m not using a single.php template — the only thing the app is using is the aggregate [jobs] view.
Not running any other plugins besides wp-job-manager and this all worked great before software updates; there have been no changes to the code base in weeks.
Forum: Plugins
In reply to: [WP Job Manager] Slug links for job-category not workingHi, this is the code I used to build a clickable list of categories with stub links. This goes in a sidebar.php custom designed for the theme.
foreach ( get_job_listing_categories() as $cat ) : echo '<li><a href="' . $prefix . '/jobs/?search_category= ' . esc_attr( $cat->term_id ) . '"/>' . $cat->name . '</a> (' . $cat->count . ')'; endforeach; ?>
If you want to search for text in the job listings you can just send a GET request to the page with the [jobs] shortcode, like “mainjobs.php?search_keywords=”blahblah”.
Does that answer your question?
- This reply was modified 6 years, 2 months ago by Bunny Blake.
Forum: Plugins
In reply to: [WP Job Manager] Slug links for job-category not workingOkay I figured it out, the answer was in the “creating a custom job search form” tutorial. I just need to construct an URL to call the main jobs page with a GET request like ?search_category=19.
The description of the [jobs] shortcode does say “If the URL of the page contains a query string and location or keywords is set, the values in the query string will populate the location and keywords fields instead of the above options,” which I totally overlooked. Maybe that bit of the documentation could be expanded a bit? It talks about prepopulating the fields, but doesn’t mention you can filter the page e.g. on job-category.
Forum: Plugins
In reply to: [WP Job Manager] Slug links for job-category not workingOkay I figured it out partway, that I had to enable full theme support in functions.php, and then go to the permalinks page to save. Doing this makes the job category slug links work okay, although the output it returns is showing the full single job listing for each entry, which is not quite what I want.
The end result I want is to build a link which will call the [jobs] shortcode with parameters, like [jobs categories=”photographer”]. Is there an easy/recommended way to do this?
Forum: Plugins
In reply to: [WP Job Manager] [jobs] doesn’t work with my barebones themeI figured it out. The problem is that my footer.php wasn’t calling wp_footer(), which I didn’t think I needed, since I wasn’t using any widgets at the bottom of the page. But wp-job-manager needs wp_footer() to call the ajax javascript for get_listings, and once I added that call at the end of the page everything works as expected.
- This reply was modified 6 years, 3 months ago by Bunny Blake.