traveler
Forum Replies Created
-
Good point, I’d forgotten about the additional created images WordPress does. I’ll check out those plugins, thanks for the recommendation threadi.
Forum: Plugins
In reply to: [Ivory Search - WordPress Search Plugin] Search finds no resultsYes, that did the trick. Thank you Vinod.
Forum: Plugins
In reply to: [Ivory Search - WordPress Search Plugin] Search finds no resultsHello Vinod, here is the testing site: https://devseiu2015.wpengine.com/
Just click the search icon in the top-right corner. Thank you.
We want to be able to show uploaded PDFs in the search query, which is why we tested this plugin out. However, some of the PDFs we want searchable whereas others we do not because they are private financial statements that live behind a login portal for our board of supervisors. So I was wondering if the query that pulls in PDFs could be overwritten to exclude specific PDFs.
Thanks for your response. This is clearly Not an ACF Pro issue, I was just providing detail on how they are uploaded to the page. I just have easily could have said the PDFs are uploaded to the native media manager. Also, it’s not a commercial theme, I developed it, it’s not a commercial product, nor would I expect anyone on this forum to have it.
That said, let me restate the question that I’m looking for an answer to: is there a way to prevent a PDF that is within the WordPress site structure, whether it’s in the uploads folder or whether it’s in a folder that only lives in the theme, to be viewed only by a specific user role within WordPress? So this way you can’t view or download it with the direct URL, and only someone logged in to WordPress with that specific role, can view it on the page it’s coded to be viewed in?
Using the index.php with:
<?php// Silence is golden
works to restrict this. However, if this is put into all the /wp-content/uploads/year/month format, will that cause any potential issues? I could create a folder within the theme structure, but then it would be very hard for the client to manage adding new PDFs and knowing how to attach them to the page. For those tasks, keeping the PDFs within the media manager would be best.Forum: Reviews
In reply to: [Redirection] How many redirects before site speed is affected?Thanks John. Meant to post in the support queue but incorrectly posted in the review section.
Forum: Developing with WordPress
In reply to: Mobile Menu Button Not ClickableCan you include the code for your <header> or <nav>, wherever you have the menu code that is not working?
Based on what you have in your functions.php for the navigation menus, those look ok. However, your root problem was the mobile menu was not toggling on/off when you clicked the button. If any of the classes or ID’s that navigation.js relies upon are changed, or embedded incorrectly, then it will cause it to not work.
- This reply was modified 2 years, 6 months ago by traveler.
Forum: Developing with WordPress
In reply to: Mobile Menu Button Not ClickableIf you added a second navbar with the same id’s and class names then that is your problem. I would highly recommend walking through navigation.js and understanding what it’s looking for, and also how it adds classes required for built-in functionality like .nav-menu, etc.
If you copied the entire <nav id=”site-navigation”> and did not change the id, then that is probably your culprit. But I would remove the 2nd navbar, see if that makes the original work, then add the second one in one step at a time and each time test to see what step is causing the original navbar to break.
Forum: Developing with WordPress
In reply to: Mobile Menu Button Not ClickableWithout seeing it, assuming you’ve enqueued your default navigation.js in functions.php, it comes that way from Underscores but it can always be changed..?.., it’s probably because you’ve altered the element classes and/or id’s responsible for the navigation.js to find the elements.
In cases like this, I like to open the html in dev tools, identify the elements that should open/close (the mobile nav) and then click the button to see if that element flashes, which would indicate that a class, or id, or any number of other attributes were changed with js. If nothing flashes, then the navigation.js is not able to identify the elements in the dom that it needs to perform it’s task.
Forum: Plugins
In reply to: [WooCommerce] Single query for “featured” and “non-featured” products?Thanks Igor, I ended up making two queries and combining them and it’s working as I wanted.
Forum: Plugins
In reply to: [WooCommerce] Single query for “featured” and “non-featured” products?Actually, the menu order feature does not seem to work for the custom query on the front page of the site. It does work as expected on the Shop page though. I tried adding this query:
'post_type' => 'product', 'posts_per_page' => $productsToShow, 'orderby' => 'menu_order',While the ‘orderby’ query did change the order of the products, it did not seem to recognize the menu order setting in product details under advanced. Is there any way to incorporate this into a custom product query?
Forum: Plugins
In reply to: [WooCommerce] Single query for “featured” and “non-featured” products?Hello Said, this is not the shop page, but the front page template and homepage of the site. We currently just query the newest 30 products, but if a single product was made “featured”, is there a way to have the featured products show up in the front page query at the top of the query, or where normally the newest product would show up in the top-left of the products container.
The menu order feature will actually do what it is we wanted. Thanks for pointing it out.
Thank you!
Forum: Fixing WordPress
In reply to: Widgets all gone in admin Appearance –> WidgetsDeleted entire install and database and re-migrated it all and it works.
Forum: Developing with WordPress
In reply to: add div between underscores content in content-page.phpYou need to open up the template file and insert those additional div’s into the markup. I would recommend installing a plugin that will show you what page template is loading so you can identify them, it’s called “What template am I using” by Eric King. Once you know what template file to edit, open it in a text editor and simply enter whatever bootstrap grid code you want.
Also, I would greatly advise you to use the “code” key when entering code so that it is formatted properly in your post. You click “code” and enter your HTML/PHP/JS/Etc inside the ticks and then click it again when you want to close that code snippet.