I have a working search box in my nav bar, what I'd like to implement now is a search page, eg mysite/search.html - ideally so I can set up links to my site with mysite/search.html?q=QUERYSTRING
An example of this working in practice is shown here.
I'm using the material theme and my config is here. The site is here.
The search.html appears to be in the material repo, however it doesn't appear in my build. I'm using mkdocs v1.1.2 and mkdocs-material 5.5.0
Related
Made a wordpress website with the Astra theme and I want to remove a link from the header navigation because I only want my logo to be the link to the homepage. I haven't found any working solutions yet.
I have already looked through the backend of the theme and wordpress but I can't seem to find it anywhere. I also went through the code but that didn't get me anywhere either.
If you could take a screenshot of the specific link element that you are trying to remove that might help me understand better your situation to I can better assist you. That said, here are a few observations that might help you achieve what you are looking for.
From my end, when I install the Astra theme locally I only see two links in the navbar (header): 1) The Brand logo link (the link to the website's home page) on the left and 2) The "Sample Page" link to the only page (the default sample page) I have in my WordPress development website.
If what you are trying to do is remove page links in the navbar (header), then it looks like to me that the free version of this theme has relatively limited customization options and by default the navbar shows your published pages as navbar links (links on header area).
So as is, I think you have two quick options:
1) Disable the menu altogether, which will leave your navbar (header) with the Brand Logo link only. You can do that in the following way:
Go to:
Appearance -> Customize -> Layout -> Header -> Primary Header
Then..
Check off "Disable Menu" checkbox option. Then press the "Publish" button at the top to save this change.
From what I can see, this basically removes the navbar links on the right and leaves the Brand logo link to the website's homepage on the left only. This sounds like what you were trying to do although I am not entirely sure that is the best solution.
2) You can also simply be mindful of the way the free version of the them works with respect to the navbar (header), which, as I mentioned above, seems to display your published pages as navbar links. With that in mind, you should be able to influence what gets displayed as your navbar (header) links by adding/changing/removing your PAGES through the "Pages" from your WordPress Admin Dashboard menu. For example, in my case, if I wanted to remove the "Sample Page" navbar (header) link, all I need to do is remove or set the page visibility to "Private". You can do that like this:
Pages -> *Select Specific Page that comes up as navbar (header) link, in my case "Sample Page".
Then..
Press "Move to Trash" button. OR simply click "Public" next to where it says "Visibility" and then select "Private" from the drop-down. Make sure you save the changes to the page as per the usual page editing process.
I hope this helps you with your quest. And if this does not quite help you with what you were trying to achieve, please do add a screenshot so I can get a better idea of what you are looking to accomplish.
Cheers!
Arty
Gday
I like to know how you would go about creating a home page in plain html and have WordPress run the other pages?
The reason is I’d like to create a solely plain html website but I need WordPress for my contact page it has a large form on it and I use a plugin to generate it and forms are a bit beyond my knowledge at the moment to create a contact page myself.
(I have tried creating a template page but then WordPress adds unnecessary code [from plugins ] and makes the AMP invalid)
Honestly I'd try and keep it self contained in WordPress itself.
If for some reason you really want a separate HTML/PHP Homepage, follow these steps:
Add a my-homepage.php file to your /wp-content/themes/ACTIVE-THEME directory
Inside that file put the following code:
Add a new page (Pages > Add New)
Give it a recognizable name like "My Homepage"
In the "Template" selector on the right hand side, pick "My HTML Homepage" and click Publish
Go to Settings > Reading, change Your homepage displays to A static page and pick the page you just made
Now you can add your own code as you see fit. Nothing "WordPress" related will get loaded or hooked in since there's no functions on that file - so you're free to code HTML (or PHP) to your heart's content.
You can see a bit more indepth answer over on WPSE: https://wordpress.stackexchange.com/questions/296592/how-to-use-custom-html-file-instead-of-wordpress-homepage
I'm working on an e-commerce website that I'm making with Shopify and I've been using the Timber framework and building onto it and modifying it heavily.
You can create your page in the Shopify admin. The content box can contain HTML or JavaScript; just tap on the <> button to see the code.
The page will be rendered with the page.liquid template of your theme. If you want the FAQ page to have a different look from your other pages you can create an alternate page template.
I'm learning how to use wordpress using it from my computer as a local web server, and I want my website look like the preview of themes in the adding themes section, but after I install most of those themes, the first page I see is the post page. I want that any theme I install looks like Zerif Lite by example, that kind of look.
B.e. This real case: I just saw the Spacious theme, but when I click to preview just shows the blog section, and not the carrousel and all that desing...
This is my website http://ajfmo.ddns.net and i want tome make look this way http://demo.themegrill.com/spacious/
If anyone want to see inside my dashboard ask me by private message.
Thank you guys.
You can go to Settings=>Reading in the admin area and there is an option to choose a static page as your "home" page.
How can I get the same menu that is being used in MediaWiki itself (the one on the left). Is there any extension that I can download to be installed into my own MediaWiki?
The sidebar is editable. Just type MediaWiki:Sidebar into your search field. Any administrator can edit it.
See also Wikipedia's example.
If you are talking about the collapsible menus used on the MediaWiki site ( http://www.mediawiki.org/wiki/MediaWiki ), you will have to download and install the UsabilityInitiative extension.
http://www.mediawiki.org/wiki/Extension:UsabilityInitiative
Part of the extension is the new Vector skin, which contains collapsible menus.