We want am Like Box for the German MarioWiki, but there is no way to get it because no code works. Is there another way to get it into the Wiki? I see an Answer: "If it's a completely internal installation, you could enable raw html in the config file but this could be a big security risk if it is a public wiki.", but ohr Wiki is public so it's a security rsk.
There are several MediaWiki extensions that can be used to include a Facebook "like" button in your wiki:
FacebookLikeButton: Provides a <facelikebutton> tag to add a simple "like" button to a page.
TwitterFBLike: Very similar, provides a {{#TwitterFBLike}} parser function to add "tweet" and "like" buttons to a page.
SocialSideBar: Adds Twitter and Facebook buttons to the sidebar on every page.
AddThis: Very versatile extension that provides buttons for sharing an article on many different sites, both in the sidebar and/or on the page itself.
Related
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
Is is possible, and how, to define a space on a from that is not related to a field ?
How to put content in that space, for example a text? a logo? an image? a html text? a link? a button? a html with click=function?
Something like that:
You can access and edit each page related to a view using HTML editor in Newmips Studio.
We encourage to place static elements in a tag in order to be able to move them with the designer.
For the moment, you need to add all resources manually (accessing Git repository). A graphical interface to manage resources (images, videos, etc.) is planned in version 2.5 (end of year 2017).
I am building a custom WordPress site with my own theme. Is there a way in WordPress that would allow me to enable or disable a div in the sidebar similar to the way I enable or disable a widget?
For example, I have a div that is for a newsletter subscription form and a div that is for a call-to-action button. Is there a way that I can allow the WordPress administrator to choose which page to have the newsletter subscription form and which page to have the call-to-action button dynamically?
I have been searching but was unable to find any information. Perhaps I didn't have the right keyword?
Any suggestion would be greatly appreciated. Thanks!
For that to happen you would either have to go for the somewhat tricky solution, but on the other hand more satisfactory; create a custom options page with a true/false-solution using the Settings API. You can read more about that over at Codex here: https://codex.wordpress.org/Settings_API . They here refer to a handfull of external resources to learn more. This guide helped me when setting up my first built-from-scratch page; http://ottopress.com/2009/wordpress-settings-api-tutorial/ .
The other solution would be to use a plugin. The top shelf, best in class solution - if you ask me - would be Advanced Custom Fields; http://www.advancedcustomfields.com/ . It's a little bit of work to first get it's head around, perhaps, but when you get going you'll probably never look back. Creating awesome options pages is a breeze, and you probably will end up making all sorts of elements on your page optional - just because you can. But there's a catch; to create options pages you will have to buy the Pro version of it.
I would like to make a section of a page read only while other sections can be editable. Is this possible in mediawiki? I know I can add the NOEDITSECTION tag, and it removes the edit links in the section, but I still can edit it in the main edit page.
Not explicitly, no. But here's what you could do instead:
Put your read only section on a new page and protect it. Transclude the contents of that protected page onto the primary page. A user would still have the opportunity edit the primary page and entirely remove the section, but they cannot edit the contents of that section.
If your protected page is named MyProtectedPage, then you'd put {{:MyProtectedPage}} on the primary page to transclude it.
There is a mediawiki extension called ProtectSection which was designed to do exactly what you're requesting. However, it has not been maintained for years. I've been unable to get it working on the latest version of MediaWiki, but if you're running an older version, perhaps it will work for you.
https://www.mediawiki.org/wiki/Extension:ProtectSection
When adding a bookmark or favorite the browser uses the TITLE tag of the page to automatically populate the title of the bookmark. However, my web pages use SEO-friendly titles which are not really user-friendly. Is there a method to override the title when the browser makes a bookmark?
I am aware that I can create a link on the page that calls javascript:
javascript:window.external.addFavorite("url","custom title");
But is is possible to do something similar when a user uses the menu or hotkey to create a bookmark?
You're trying to solve the wrong problem.
However, my web pages use SEO-friendly titles which are not really user-friendly
This is what you need to fix. Your page titles should be user friendly.
To be honest, if you're doing it right SEO and User friendly titles should be synonymous... can you post some examples as to why you feel the need for them to be so different?
I can't see how that would be possible. The browser takes the Title loaded, which is the Title displayed on the top of the page. When saving a bookmark, it doesnt go through the code. It just adds the URL and takes the site Title.
You could check if the "bookmark"-pressing triggers a javascript event, though, i think it woudlnt be cross-browser :)