On the “Elements” page of the Course theme demo site.
https://wp-themes.com/course/?p=36
In the section “Misc Stuff” (near the bottom) there is the code/monospace block. This overruns the main area width extending to the sidebar and beyond to the edge of the screen.
Is this intentional? Other themes also have this behaviour. I have also seen a slider in a contained box to limit the text to the main column, and allow sideways scrolling. An example of this method is in the Coursemax theme.
https://wp-themes.com/coursemax/?p=36
Thanks,
Ed
]]>Oh, oh, oh, I’m on fire
Oh, oh, oh, I’m on fire
Woo-ooh-ooh
Woo-ooh-ooh
Becomes:
Oh, oh, oh, I’m on fire
Oh, oh, oh, I’m on fire
Woo-ooh-ooh
Woo-ooh-ooh
I’m guessing the html minifier should ignore anything wrapped in a pre tag, and maybe <code> too.
on 3 blogs where I’ve installed this plugin, it affects the code tags and removes formatting:
As soon as I deactivate it, everything is correctly displayed.
—
Here is an empty wp installation running WP 6.2 with Twenty Twenty-Three theme and only this plugin: https://demo.plugins.club/2023/04/16/some-code/
For now, I will temporarily deactivate the plugin on live sites but leave this demo and re-test after an update *(if the issue is confirmed and resolved).
Thanks.
]]>My tech blog is running on WordPress with a stripped-down Hestia theme.
I’ve replaced the standard editor with the old classic editor.
I often include bits of code in my blog: shell code, configuration files, etc.
The inline code bits like commands or filenames are enclosed in (inline) code and /code brackets.
As for the longer listings, I usually use HTML’s pre and /pre.
For editing these, I have to switch to text source mode, since I have no buttons for code and pre. Which can get rather tedious if you have a longer article.
Q: is there any way to add buttons to the classic editor for code and pre ?
Thanks & cheers from the rainy South of France,
Niki
]]>I have online printing website. I have file uploads plugin but id does not work, stacks on upload.
Let me explain how my website works:
1)Use upload s printing images on product page, if particular image need to b printed two, tree or mero times he indicates as we indicate fo product quantity, per uploaded image have ownd quantity indicator. Quantiti of images user can change from chackout page too.
2)Uploaded images i see on chackout page too.
3) file upload form and button is under product ptions and over Add to Cart button.
4) uploaded images with indicated printing image quaintites admin can ses on admin panel. E.g if for second uploaded image user indicatd 2 item, on this image admin sees quantity 2.
5) After making order user and admin gets mail where both sees uploaded images and indicatd printng quantities.
Tell me plaease which of this options have your plugin, which can be added what will be price?
P.S. As i told i have plugin wt tis functions, but it cant upload file adn stops working during uploads. I have to avoid this failure.
Thank you
]]><pre></pre>
in my output. I’ve tried at least 10 different javascript and php combinations for ajax. But none of them worked. pre haunts me.
This is my PHP code:
function ewfb_license_control_ajax(){
wp_send_json_success();
wp_die();
}
add_action( 'wp_ajax_ewfb_license_control_ajax', 'ewfb_license_control_ajax' );
This is my javascript code:
jQuery.post(ajaxurl, data, function (response) {
console.log(typeof response);
console.log(response);
}, 'html');
And this is my output:
<pre></pre>{"success":true}
My theme is NEVE and it only seems to display the standard shortcode and not the custom shortcodes.
]]>site-content code
{
color: ghostwhite;
background-color: black;
}
.site-content pre
{
color: ghostwhite;
background-color: black;
}
PS:
This works on mobile layout on desktop chrome, but not work on real phone with android.