Forum Replies Created
-
AuthorPosts
-
By the way – you can open svg files with good text editors. (Sublime Text on Mac – or Notepad++ on Windows)
That’s a first hint. I opened your logo in Illustrator and created meaningful groups. I then edited these in Sublime Text. Above all, I renamed the standard Illustrator group names (manually) and assigned IDs to the groups.But unfortunately I’ll have to put you off until after Christmas – from now on I’ll be in off-duty mode.
As I said, it’s always better for us who want to help to be able to analyze the page with the problems.by the way – this is as Rikard mentioned a color-section with 100% height :
https://webers-testseite.de/fullbackground/But surely you don’t want this background image to be compressed or stretched – you want to maintain the aspect ratio.
Enfold has it for a background image on: General Styling – Body Background.
If you have now selected a stretched layout, a pop-up will display a message: These options are only available if you select the ‘boxed’ or ‘framed’ layout. Your currently have a different layout selected.So this body background-image only makes sense if you use one of those ‘boxed’ or ‘framed’ layout.
If you got one background-image in that setting – set it to cover the page.There are possibilities to change that bg image on load by script.
__________
Mais vous ne voulez certainement pas que cette image d’arrière-plan soit comprimée ou étirée – vous voulez conserver le rapport hauteur/largeur.
Enfold l’a pour une image d’arrière-plan sur : Style général – Arrière-plan du body.
Si vous avez sélectionné une mise en page étirée, une fenêtre contextuelle affichera un message : Ces options ne sont disponibles que si vous avez sélectionné la mise en page « encadrée » ou « encadrante ». Vous avez actuellement sélectionné une mise en page différente.Cette image d’arrière-plan n’a donc de sens que si vous utilisez l’une de ces mises en page « boxed » ou « framed ».
Si vous disposez d’une image d’arrière-plan dans ces paramètres, réglez-la de manière à ce qu’elle couvre la page.Il est possible de modifier cette image de fond au chargement par script.
if this belongs to your belgium page – i can see the svg logo.
First – even if the text in your svg is a common font (helvetica) it might be better to convert those letters to path.try it with: https://webers-testseite.de/logo-top.zip
https://webers-testseite.de/logo-top.svg
by the way: you are not forced to have the logo inside that logo container – you can overlap the header area:
https://webers-testseite.de/overlapping-logo/December 24, 2024 at 3:45 am in reply to: Trying to create the same border and shadow on an image as on a button #1474211To give better advice, it is best to see the page. This also applies to the svg logo issue.
but you can use on those pages a custom shortcode for breadcrumb.
There is one for breadcrumb only on docu:function av_breadcrumbs_shortcode( $atts ) { return Avia_Breadcrumb_Trail()->get_trail( array( 'separator' => '/', 'richsnippet' => true ) ); } add_shortcode( 'av_breadcrumbs', 'av_breadcrumbs_shortcode' );
But if you like to have both – look further on that page: https://webers-testseite.de/breadcrumbs-shortcode/use an extra color-section (custom class with: breadcrumb-section) and styling background-color: alternate content.
i guess that page with no Title has a transparency header.
in functions-enfold.php there is:if( ! empty( $transparency ) ) { $header['header_title_bar'] = 'hidden_title_bar'; }
December 23, 2024 at 4:14 am in reply to: Trying to create the same border and shadow on an image as on a button #1474158try to give an ID to the selector f.e.:
#top .blokje .avia-image-overlay-wrap a.avia_image { overflow: visible; } #top .blokje img.avia_image { border: 1px solid #005999; padding: 40px; box-shadow: 5px 5px 0px 0px #005999; }
i placed here a different value so that you can clearly see that “shadow” will work – afterwards you can change back to your box-shadow.
and btw: https://kriesi.at/support/topic/changing-buttons-colors-to-gradient/#post-1473778
Try in your child-theme functions.php:
function custom_shrink_factor($shrink_factor){ $shrink_factor = '95'; return $shrink_factor; } add_filter('avf_header_shrink_factor', 'custom_shrink_factor');
because of avia-snippet-sticky-header.js :
const value = parseInt( shrink_factor );
Inserting fractional numbers therefore makes no sense
or rather prevent their creation : Go to Blog Layout – Single Post Options – Disable Single Postnavigation
i contacted kreaturamedia – here is the answer:
Thank you for reaching out to us and for sharing your concerns about using LayerSlider with your current Content Security Policy (CSP) settings. We’re sorry to hear about the challenges you’ve encountered, and we truly understand your desire to implement stricter security measures on your website.
Unfortunately, for technical reasons, LayerSlider relies on inline scripts to function properly. This is a common practice in the WordPress ecosystem, as nearly all plugins, themes, and even WordPress itself make use of inline scripts. While limiting or disallowing inline scripts can offer certain security advantages, they serve an essential purpose, especially for dynamically generated content. Inline scripts are not inherently a security risk.
If you’re looking for a potential solution, you might consider using a third-party optimization plugin. These tools can consolidate and compress scripts, including inline scripts, into external files. This approach could help you achieve a balance between stricter CSP settings and maintaining the functionality of your website.
i asked them if it might be possible to include nonce to their inline scripts. Hope they will answer soon.
Even if it is possible – would it look nice inside a 30% width of a sidebar?
you can use that existing page-content alb shortcode. But using fullwidth elements inside that page will break your widget areaf.e. code:
[av_postcontent link='page,45527']
December 20, 2024 at 5:18 pm in reply to: Use code tag for posting snippets … e.g. implementing google tag script #1474072This was intended for my dear colleagues (participants). Unfortunately, known errors are passed on again and again in this way. A code that is actually correct then becomes invalid.
It also makes the work of those who want to help more difficult. Tracking a code in the code tag is hard enough, but having to deal with whether all characters are correct …@ismael – maybe your snippet works with the add_attachment hook too? So to say on uploading new images.
Otherwise i found this snippet that creates title, alt and description by file name source:
(bring the first Letter of each work to uppercase (ucwords) – and removes the hyphens etc )function my_set_image_meta_upon_image_upload( $post_ID ) { // Check if uploaded file is an image, else do nothing if ( wp_attachment_is_image( $post_ID ) ) { $my_image_title = get_post( $post_ID )->post_title; // Sanitize the title: remove hyphens, underscores & extra spaces: $my_image_title = preg_replace( '%\s*[-_\s]+\s*%', ' ', $my_image_title ); // Sanitize the title: capitalize first letter of every word (other letters lower case): $my_image_title = ucwords( strtolower( $my_image_title ) ); // Create an array with the image meta (Title, Caption, Description) to be updated // Note: comment out the Excerpt/Caption or Content/Description lines if not needed $my_image_meta = array( 'ID' => $post_ID, // Specify the image (ID) to be updated 'post_title' => $my_image_title, // Set image Title to sanitized title 'post_excerpt' => $my_image_title, // Set image Caption (Excerpt) to sanitized title 'post_content' => $my_image_title, // Set image Description (Content) to sanitized title ); // Set the image Alt-Text update_post_meta( $post_ID, '_wp_attachment_image_alt', $my_image_title ); // Set the image meta (e.g. Title, Excerpt, Content) wp_update_post( $my_image_meta ); } } add_action( 'add_attachment', 'my_set_image_meta_upon_image_upload' );
The mark on “Run as dry run” had to be unchecked if you like to change something to database. That was only a test run for checking if a color could be substituted this way.
by the way – i do not know if this extension does exist for other browsers – but you can install for Firefox this:
https://addons.mozilla.org/en-US/firefox/addon/content-security-policy-gen/
For Chrom Users: https://chromewebstore.google.com/detail/content-security-policy-c/ahlnecfloencbkpfnpljbojmjkfgnmdc?hl=en- Install the “Content Security Policy Gen” extension.
- Visit the website for which you want to generate CSP rules.
- Click on the extension icon in the browser toolbar to initiate the site scan.
The extension will scan the website and generate recommended CSP rules based on the resources present on the site.
Copy the generated CSP rules from the extension’s output.do not forget to add as last the upgrade-insecure-requests ( This is missing from the results )
The firefox seems to be a little bit more detailed. And does not add a report uri to the extension developer ;)Some features are deprecated – like block-all-mixed-content – just remove that. Do not this with upgrade-insecure-requests
without the
script-src 'unsafe-inline'
the layerslider does not work – we should ask why
The biggest issue is that a number of plugins inject inline styles or scripts without nonces, which would require unsafe-inline. And that is sad!Do all images got Titles or Descriptions too? – and do they differ from Alt Text?
My question is that there might be a method to generate the alt text from one of the others.By the way – I would probably replace the color in the database – but that’s something I’d hesitate to explain to a non-technical user.Maybe using a plugin https://wordpress.org/plugins/better-search-replace/ will help you.
(my table prefix is not for the public)
Probably only these 3 tables are affected:
( _options , _postmeta , _posts)after replacement you can deinstall that nice Plugin.
please insert this to your child-theme functions.php:
(maybe a mod knows a shorter way)function replace_one_specific_color(){ ?> <script> window.addEventListener("DOMContentLoaded", function () { (function($) { function colorReplace(findHexColor, replaceWith) { // Convert rgb color strings to hex // REF: https://stackoverflow.com/a/3627747/1938889 function rgb2hex(rgb) { if (/^#[0-9A-F]{6}$/i.test(rgb)) return rgb; rgb = rgb.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/); function hex(x) { return ("0" + parseInt(x).toString(16)).slice(-2); } return "#" + hex(rgb[1]) + hex(rgb[2]) + hex(rgb[3]); } // Select and run a map function on every tag $('.flex_column, .avia-button').map(function(i, el) { // Get the computed styles of each tag var styles = window.getComputedStyle(el); // Go through each computed style and search for "color" Object.keys(styles).reduce(function(acc, k) { var name = styles[k]; var value = styles.getPropertyValue(name); if (value !== null && name.indexOf("color") >= 0) { // Convert the rgb color to hex and compare with the target color if (value.indexOf("rgb(") >= 0 && rgb2hex(value) === findHexColor) { // Replace the color on this found color attribute $(el).css(name, replaceWith); } } }); }); } // Call like this for each color attribute you want to replace colorReplace("#ea675b", "#0000DD"); })(jQuery); }); </script> <?php } add_action('wp_footer', 'replace_one_specific_color');
no – this: https://kriesi.at/support/topic/change-a-color-sitewide/#post-1473933
but: Really now? – I thought we were talking about a few hundred posts that need to be changed. I would change the few things manually. Honestly – it is better to change the background color on generation than to change it afterwards via css or script.
open the column and replace the color.
ok – you can try first the last tip.
Then i will have a look if we can address it by attribute selector.Or do you belong to the buttons?
you can insert your wanted color to : General Styling – Main Content – Primary Color
but that will only work if the buttons are on default setting. If they are inserted with custom settings – it will have no effect.
you are talking about the background-color of that flex_column
this does not come from a theme setting – it is set inside the column itself. You can open that column element in the editor mode and change the background-color.
I do not recommend addressing all flex_columns with a global CSS code.
December 18, 2024 at 4:26 pm in reply to: Blog – Selection filters with more than one category #1473908may be this is one you can try – but it is not free – see https://awplife.com/demo/blog-filter-premium/multi-filter-or-logic/
i think the non premium filter doesn’t have this multi filter logic. https://wordpress.org/plugins/blog-filter/
What do you mean by:
All the “.” and capitals were in the right place.
What did you enter to the alt input field f.e.?
December 18, 2024 at 3:58 pm in reply to: Blog – Selection filters with more than one category #1473904as a participant as you are – i do not see content of private field.
in the meantime i have some more entries on that in my htaccess file:
<IfModule mod_headers.c> Header set Referrer-Policy "no-referrer" Header set Referrer-Policy "strict-origin-when-cross-origin" Header set X-Frame-Options "sameorigin" Header set X-XSS-Protection "1; mode=block" Header set X-Content-Type-Options "nosniff" Header set Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" Header always set Content-Security-Policy "upgrade-insecure-requests" Header always set Permissions-Policy "geolocation=(), midi=(),sync-xhr=(),accelerometer=(), gyroscope=(), magnetometer=(), camera=(), fullscreen=(self)" Header set Cross-Origin-Embedder-Policy "unsafe-none" Header set Cross-Origin-Opener-Policy "same-origin" Header set Cross-Origin-Resource-Policy: "same-site" </IfModule>
with this setting i do not have neither on pagespeed insights nor on lighthouse ( inside chrome browser ) any errors – just warnings.
you can see results here : https://securityheaders.com/?q=webers-testseite.de&followRedirects=on
Although this is criticized, it does not prevent you from receiving the 100 points ;)
i fear that you will block some scripts by script-src ‘self’ on advanced layerslider.
December 18, 2024 at 1:11 pm in reply to: Blog – Selection filters with more than one category #1473897December 18, 2024 at 11:36 am in reply to: How to place a darker background on Fold/Unfold Text Block box #1473892first – maybe you decide not to have this immense padding of 100px of that cell – because expanding the content will end in a very hight container.
next: set for the background-image position : bottom center.
put this to your quick css and adjust to your needs:#top .av-fold-unfold-container.unfolded { background-color: rgba(0,0,0,0.3); border-radius: 15px; padding: 10px; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
if you like to have a semi-transparent white bg – change to rgba(255,255,255,0.6)
but then i would change font color to f.e. #333#top .av-fold-unfold-container.unfolded p { color: #333; }
-
AuthorPosts