aclassifier
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: [wpbsearch] short code all of a sudden failedThank you, @threadi !
Forum: Fixing WordPress
In reply to: [wpbsearch] short code all of a sudden failedThanks, good clarification. I never modify the mother theme. A child theme would be “update-safer”. But like mother elements that sieze to exist would probably also lose its functionality in a child theme?
Forum: Fixing WordPress
In reply to: [wpbsearch] short code all of a sudden failedThank you, @threadi.
I found no plugin, but in my own page https://www.teigfam.net/oyvind/home/publishing/061-wordpress/ I discovered that in
functions.phpof my Twenty Twelve Child theme I had this:<?php add_shortcode('wpbsearch', 'get_search_form'); ?>I now understand that it must have been the child theme that had become not activated (?), so none of them were. And when I actived the mother only, I got it wrong. But when I saw in the theme editor that my child’s
functions.hwas not activated, I understood my blunder.WordPress requires the “opposite” logic to what I am used to in programming languages: the child does not act like a header file that is picked up by the mother. The “child comes before the mother”(!?)
Maybe a warning like “You have a child theme, consider activating it alone instead to get the full functionality” if the mother is activated instead of a present child, might have helped me.
Forum: Fixing WordPress
In reply to: Page URL to be displayed on the top of each post or pageSorry, I have not followed this up. I have removed deleted WPCode Lite. It was too time-demanding for me, compared to the means I wanted. Thanky you for your help in trying to get this up and working!
Forum: Fixing WordPress
In reply to: Page URL to be displayed on the top of each post or pageThank you! I will follow that reference! I’ll be back in a few days. Ø
Forum: Fixing WordPress
In reply to: Page URL to be displayed on the top of each post or pageNo, I did not. I guess it stopped because I did not dig deep enough to find out what such a php file should be called for it to be automatically included. Also, I guess it was unclear to me how to control where it should be automatically added, like how to place it on the very top (like the plugin seems to always insist on) or just below the heading graphics (like I guess I want to). I’d be glad to test it out once those matters became clear to me.
Honestly, this is what it looks like, a cry out for a detailed recipe 😉
Forum: Fixing WordPress
In reply to: Page URL to be displayed on the top of each post or pageHi, I found no “Insert Before Content”. There is the proximity placement for css / html, but that’s for Pro. Where might what you mean be? I did not change anything.
I don’t do this in “Global Header and Footer” page but in the “Edit Snippet” page.
- This reply was modified 6 months, 2 weeks ago by aclassifier.
- This reply was modified 6 months, 2 weeks ago by aclassifier.
Forum: Fixing WordPress
In reply to: Page URL to be displayed on the top of each post or pageI have now updated from “Site wide header” to “Site wide body”, but it seems to me that it’s on the same place, on the very top. I have purged all cached files in WordPress and emptied all buffers in Safari (18.6 on macOS Sequoia). I will not experiment with any other option, let it stay like that until I might hear from you.
Best regards,
Øyvind- This reply was modified 6 months, 2 weeks ago by aclassifier.
Forum: Fixing WordPress
In reply to: Page URL to be displayed on the top of each post or pageForget the double-print above. With two echo that code certainly double-prints! How blind can I be?
But the placement question is still valid. I have centered it on the top now. (I will also do this on desktop only. That was Pro only.)
- This reply was modified 6 months, 2 weeks ago by aclassifier. Reason: More info
- This reply was modified 6 months, 2 weeks ago by aclassifier.
- This reply was modified 6 months, 2 weeks ago by aclassifier.
Forum: Fixing WordPress
In reply to: Page URL to be displayed on the top of each post or pageThank you!
I have now inserted the WPCode extension. I added this code as below as “Site-wide header”
<?php
global $wp;
$current_url = home_url( add_query_arg( array(), $wp->request ) );
echo $current_url;This seems to work, displaying it on the very top. However I would like to print it is a clickable url. But the below code prints first the url then the clickable url. And Duck.ai couldn’t help me any more. It said that if it printed more than the clickable url there might be something else that interferes.

Test it here: https://www.teigfam.net/oyvind/home/ or any other page. It’s on the top. How could this be done?
Once I get this right, is there any way to place it below the heading picture?
I don’t know the escape characters here, so I had to make a bitmap of the code.
Forum: Fixing WordPress
In reply to: Page URL to be displayed on the top of each post or pageThank you! Will any .php file in the directory /twentytwelve-child just be included when all pages or posts are loaded? Could I use functions.php, which now contains only this line:
<?php add_shortcode('wpbsearch', 'get_search_form'); ?>In case yes, I assume that your code
global $wp;;
$current_url = home_url( add_query_arg( array(), $wp->request ) );
echo $current_urlwill need to be told that it should be drawn with the header?
In case no, what should the file be called in order for that code in it be included when he screens are drawn?
Kind regards,
Øyvind- This reply was modified 6 months, 2 weeks ago by aclassifier.
Forum: Fixing WordPress
In reply to: Page URL to be displayed on the top of each post or pageThanks, @wpmudevsupport13 !
I already have a style.css under Twenty Twelve. It’s at https://www.teigfam.net/oyvind/home/wp-content/themes/twentytwelve-child/style.css
I added your code at the bottom. But how do I put it inside a header type?
- This reply was modified 6 months, 2 weeks ago by aclassifier. Reason: typo
Good clarification! Thank you! Øyvind
Thanks times two!
So any restore WordPress is done on the stored backups in the UpdraftPlus menu? So downloading them to my machine would help zero if I needed to rebeuild kind of, if my server had lost everything on it?
Thanks! But maybe UpdraftPlus should take care of the numbering? When the unzip is done on same named directories, the same name will come out and the browser (Safari or Chrome) will have to invent a unique name, which it does by adding that number, not to overwrite.
I mean, since UpdraftPlus already shows a number to the user, I would have kept this consistent all the way throught to the stored zip or unpacked-to directory.
By the way, would you know how to tell Safari not to unpack?