Aureola
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to add image to 404 error pageRead a bit about the bloginfo function on https://codex.www.ads-software.com/Function_Reference/bloginfo and see if you can figure it out yourself. Clearly you need to have something else there than template_directory. Maybe (‘wpurl’).
Forum: Fixing WordPress
In reply to: How to add image to 404 error pageYou have to know where in the directory structure you have put your image.
If let’s say this is your path:
example.com/wp-content/themes/UendisTheme/images/fruits.pngthen in your 404.php file add
<img src="<?php bloginfo('template_directory'); ?>/images/imagename.png" alt="The image alt-text" />
(since example.com/wp-content/themes/UendisTheme is replaced by ‘template_directory’.Forum: Fixing WordPress
In reply to: How to add image to 404 error pageI’m not sure that that is how it can be done (but I might be wrong).
Reading this: https://codex.www.ads-software.com/Creating_an_Error_404_Page
there is no html file. just php.In a normal page that you create in the admin panel, to add a picture you just press the Add Media button in Visual mode and select the picture.
Forum: Fixing WordPress
In reply to: How to add image to 404 error pageAre you developing your own theme/changing an existing one..? In that case I think you need to edit your 404.php file. and add this where you want the image to appear:
<img src="<?php bloginfo('template_directory'); ?>/images/imagename.png" alt="" />
(of course you need the path to your image from the theme directory and down.)Forum: Fixing WordPress
In reply to: Sharing on FacebookI’m not super WP savvy but I guess this is entirely handled by the social media plugin that you are using. Which one is it?
Forum: Fixing WordPress
In reply to: How can I change the template file used by Calendar Widget linksGreat, thanks Esmi!
So, to mark this as Resolved I repeat the answer to my question was:The template that is used by the links in the Calendar widget is archive.php. And when there’s no such file WP defaults to index.php. As is explained on this page: https://codex.www.ads-software.com/Template_Hierarchy
(I did read this page; I just wasn’t sure of the connection with the Calendar widget links)Forum: Fixing WordPress
In reply to: How can I change the template file used by Calendar Widget linksAh I think I get what you mean now!
This row:
/* Template Name: Archive-template */
Shouldn’t be included, because if I do, then it shows up in the Meta-box of Templates in the admin panel – right? Which is of course unnecessary, because I never want my editor users to select this as a template for any page they ever create.
There is nothing stopping me from adding a Reply-link / comments at the bottom of each posts then, if I understood you correctly. Many thanks again and sorry for being a little “slow”.
Forum: Fixing WordPress
In reply to: How can I change the template file used by Calendar Widget linksIt did help! ??
I just copied the template used for the News page (the blog).
I’m not sure what you mean by this:remember that this will not be a Page template, so do not include the Page comment block at the top of the file.
How is it not a page template? I’m a WP newbie so maybe I have the wrong terminology. It does behave very much like the rest of the page templates used by other pages on the site.
I’m interested to sort this out because I would like to include a comment-link at the bottom of each blog post; both in the archive.php as well as in the home.php (the blog template) so that visitors of the blog could easily comment. I also want all comments to be visible under each of the blog posts – is it this that you do not recommend?
Forum: Fixing WordPress
In reply to: How can I change the template file used by Calendar Widget linksI’m wondering, maybe these links point to the so called “archive”?
If so, would it help if I created a file called archive.php?
And there tried to “tell” it to use the page_secondary template..? I’m so totally lost…Update: I think I’ve found the template file! It was of course index.php, which is the one used when there are nothing else! right? But if I create a file called archive.php, it would use this one instead?
I have some other stuff I need to change that should only affect the archived blog posts, such as a reply-link for every post, so I guess the best would be to leave index.php as it is and just create the archive.php and do what I need to do there. Am I on the right track?
Forum: Fixing WordPress
In reply to: How can I change the template file used by Calendar Widget linksThanks Esmi – always there to draw me out of the ditch I’ve buried myself in ??
But if I haven’t styled it – at least not consciously – where would I do that? And how..?Forum: Plugins
In reply to: Make hardcoded links point to different pages depending on languageIt has been some time since I posted this question and I have not yet found any solution. All who run multisite, multilingual wordpress with a footer with links for example to legal documents that must be available in both/all languages, such as Terms of Use, Privacy Policy , About Us etc; there must have been a way that they got around this..? I mean I can’t be the only one having this problem?
Yet, I have during this time only seen WPML deal with this, but since I have 99% of my site ready I don’t want to install a big plugin like that just to be able to have custom links per language, there must be a simpler way to do this..? I’m thinking about kind of this: https://codex.www.ads-software.com/Conditional_Tags but there seem to be no conditional tag that checks a specific locale..I got a tip in another thread that I should check out the WordPress nav menus but since I never see the footer content in the backend admin panel, I can never assign a specific menu to a specific (language’s) blog to the footer there. As far as I can see, I have to make some kind of conditional statement in the footer.php file itself. But I don’t know how, and I have found NO examples to follow.
I’d be so thankful if someone here could take the time to point me in the right direction.
But my footer – where this menu would then be put – is a template file and I have no idea where to put this footer-navigation into it so that it depends on which language is currently being used.
(I don’t want to put the footer-stuff into the main navigation menu, that would totally break the layout and making the main navigation too big (it would break into two rows and that would be u g l y ))I see. This might be something worth mentioning in the installation doc perhaps ??
Now I only need to figure out how to make conditional URL’s in the footer (links to Conditions of Use and similar footer-links that should direct to different pages depending on language) but that’s another topic. Then I’ll be completely done! ??Yes that was the case! After reading your answer here I changed it so that the same admins are on the two sites and Yes! It finally works! Thank you very much! Contribution on the way.
Hi Dennis and thanks for getting back to me on this. The super-admin is the same for the two blogs, but WP created a site-admin called “sp” for the sp subfolder (the spanish site). This “sp” was the only admin for the spanish site from the start; I had to manually add the super-admin to the sp site as administrator but I did this in the very beginning, as soon as I had finished the multisite conversion.