meushar
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Job Manager] Textarea fields do not maintain formattingHi Cara
Thanks for the reply.
With the error even if preformatted was selected prior to pasting, the formatting was lost.
I added the following to my functions.php file and it solved the issues. It also gives me more options on the editor controls.
add_filter('tiny_mce_before_init', 'custom_tinymce_settings');
function custom_tinymce_settings($initArray) {
? ? $initArray['toolbar1'] = 'bold italic underline strikethrough superscript ?subscript | bullist numlist | outdent indent ?| link unlink | alignleft aligncenter alignright alignjustify | removeformat ';
? ? $initArray['toolbar2'] = 'formatselect fontselect fontsizeselect';
? ? $initArray['toolbar3'] = 'cut copy paste | undo redo | forecolor backcolor';
? ? $initArray['content_css'] = get_template_directory_uri() . '/css/custom-editor-styles.css'; // Custom styles for the editor
? ? // Preserve line breaks
? ? $initArray['wpautop'] = false; // Prevents automatic paragraph tags around content
? ? $initArray['forced_root_block'] = ''; // Prevents wrapping content in <p> tags by default
? ? // Enable and configure paste plugin
? ? $initArray['plugins'] = 'paste'; // Ensure paste plugin is enabled
? ? $initArray['paste_as_text'] = false; // Allows rich text to be pasted with formatting
? ?// $initArray['paste_enable_default_filters'] = false; // Disable TinyMCE's default paste filters
? ? // Configure TinyMCE to allow preformatted text
? ? $initArray['preformatted'] = true; // Allows preformatted text, keeping spaces and tabs intact
? ? $initArray['force_p_newlines'] = true; // Forces new lines to be preserved as paragraphs
? ? $initArray['remove_linebreaks'] = false; // Prevents TinyMCE from removing line breaks
? ? // Clean up symbols and formatting from Word
? ? $initArray['paste_word_valid_elements'] = "b,strong,i,em,ul,ol,li,p,br,h1,h2,h3,h4,h5,h6";
? ? $initArray['paste_remove_styles'] = true; // Strip inline Word styles that may include special symbols
? ? $initArray['paste_retain_style_properties'] = ''; // Remove any unwanted style properties on paste
? ? // Allow all HTML tags (optional)
? ? //$initArray['valid_elements'] = '*[*]'; // Allows all HTML tags and attributes
? ? $initArray['extended_valid_elements'] = 'pre[class|style],p,br,b,strong,i,em'; // Extend to specific inline tags if needed
? ? return $initArray;
}Seems to be a problem when using Microsoft Edge browser. Works OK with Chrome.
Forum: Plugins
In reply to: [WP eCards] logo image sizeHi Tim
your reply is very much appreciated.
I found in one of your videos a small statement that said the optimum size of a card was 700 x 525, so I made my logo image 300 x 153 to look a third the size of the card. It worked perfectly. (the smaller the logo, the more its expanded in the email)
I am using outlook to receive the email, but also on an iphone it looks ok now.
It’s just very difficult to find information, so I am thankful you are so prompt in your support. Thanks.
Forum: Plugins
In reply to: [eCards Lite] ecard confirmation locationThank you very much for your reply
The plugin inserts the <p> confirmation statement directly under the <body> opener, followed by the <meta>, <scripts>, and <style> areas, followed by the first <div>.
I have styled the confirmation with absolute positioning just above the card image gallery, which is acceptable.
Forum: Themes and Templates
In reply to: [Twenty Twenty-Two] Mobile screensize breakpointThanks Kathyrn.
I appreciate the reply.
I want the tablet display to also have the compressed navigation menu.
Changing style.min.css is silly because the next upgrade will override it.
Ill have a look at the plugin.
Many thanks.
Forum: Fixing WordPress
In reply to: wordpress 5.9 site editor template export zip is corruptI have submitted a ticket for this bug.
I had the corrupt zip file repaired by ZipRepair.net which recover all the contents.
The error they discovered is:
Your .zip file had the following issue:
End of Central Directory record could not be found.This bug occurs regardless of which year theme you begin with, including twentytwentytwo. It occurs with only the functions.php and style.css in the child theme. It occurs with no plugins active. It occurs with all versions of wordpress from 5.9 to WordPress 6.03
Forum: Fixing WordPress
In reply to: wordpress v6.0 navigation block cant enter submenu itemsThanks James
With Twenty Twenty One theme, its the old Appearance->menu method and it works fine.
With Twenty Twenty Two theme, it does not work.
Hi Priya
I did a bit of database inspection and found that WP EventManager stores dates in the US format yyyy-mm-dd hh-mm-ss.
If you import the start, end and expiry dates/times in that format (irrespective of your date picker setting) then the dates operate correctly.
I used WP All Import which gave me access to all the fields I required, including expiry date
Thanks Priya
Hi Priya
Thanks for the reply.
Your own documentation says to use WP All Import Pro. That’s why I bought it.I tried Event Manager Migration.
The documentation states that its exports and imports. I only get import.
Migration does not allow import of event expiry date
Migration does not import the image banner to the thumbnail image
Migration does not allow import of a thumbnail image separate from a banner image
Migration does not import the start and end dates suitable to work with the selected_dates shortcode
Migration needs the date to be in d-m-Y formatIf you ‘update’ the ‘detailed event’ without making any changes, then all the dates work correctly, with correct ordering and selected_datetime working as well. (same as for WP ALL Import), and the thumbnail image is set equal to the banner image.
I have 1000 events to import. Its impossible to ‘update’ each one to make this work. Please help.
Forum: Fixing WordPress
In reply to: WordPress 5.9 search block only returns a single resultHi Jonathan
I reloaded the twenty twenty two theme, and now search works on both the parent and the child.
Thanks for your help
Forum: Fixing WordPress
In reply to: wordpress 5.9 site editor template export zip is corruptHi mrtom414
I spun up a webserver on my local computer and have been playing around with it.
Amazingly, it appears to be the child them that causes the error. When I use twenty-twenty-two theme it creates zips without errors. When I use the twenty-twenty-two-child theme the errors return.
Any idea what to look at that may/may not be on the child theme?
My child theme has new template parts, some changes to theme.json and thats all.
Forum: Fixing WordPress
In reply to: WordPress 5.9 search block only returns a single resultHi Jonathan
Thanks
Im using the search.html that comes with twenty-twenty-two.
Ill try another search.html.
Forum: Fixing WordPress
In reply to: wordpress 5.9 site editor template export zip is corruptThanks mrtom414.
That is exactly what I am trying to do so good to know it works.
Ill check up how the webserver is compressing files.
One additional question if I may:
do posts and pages found by search get returned as links?Forum: Fixing WordPress
In reply to: WordPress 5.9 search block only returns a single resultThe url was mistyped. Should be https://staging.jewishqld.com/?s=new
Hi Jonathan
Yes it does. In my case “https://staging.jewishqld.com/?s=new
I know there are 2 pages with “new” on the title, but only 1 is returned.
If I type in the full page title, then it returns the correct one.`