Why h2 get CLS > 100 - h2 is on category page Prestashop - optimization

(mobile page) CLS checker for chrome and metrics show bad element h2 on category page? Why? I know how CLS works, but in this case I have no idea why I have CLS so high. The bad result is also visible in the GSC
shop cavaricci

In a quick review it looks like the fallback font is smaller than your loaded font "popins".
There are a few options here
use a default system font.
Change how the font gets loaded this will require a little reading, and being prestashop it probably wont be easy. See this article on css tricks https://css-tricks.com/the-best-font-loading-strategies-and-how-to-execute-them/
Set the font-display property in css
add a pre-load meta tag to the head of your page for each font file you will use, be careful not to load the same font twice in different formats. (see https://3perf.com/blog/link-rels/ for more info) e.g <link rel="preload" href="https://fonts.gstatic.com/s/poppins/v19/pxiEyp8kv8JHgFVrJJfecnFHGPc.woff2">
Set explicit width and heights on your title (not ideal if you are using a CMS)

Related

Add image to icon in header and in stylesheet problems Dreamweaver

Currently in my webpage I am using an image and icon in my header like this from this icon set here in the head tag of my webpage
This works fine, however, when I go to edit my webpages in Dreamweaver, using the properties inspector, the Class option list is huge, pulling from href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> and not mine. Is there anyway to fix this?
When I use the properties inspector in Dreamweaver my Class list is huge! How can I have Dreamweaver use my CSS page first?

Salesforce - PDF generation with Arabic and English text

I am trying to generate a PDF with both English and Arabic text. Please let me know if it can be done using salesforce and what should be the approach.
Visualforce page or email template has <apex:page renderAs="pdf"> attribute. Your safest choice of font will be "Arial Unicode MS", it's the only font with full unicode support. BUT it doesn't have bold variant so all your <b>, <th> etc will print with normal font weight.
If you need a different font / want to experiment - use this as base: https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_output_pdf_supported_fonts.htm
Apex has similar method to pull another page (standard SF page or Visualforce) as PDF. But it'll be server-side generation, JavaScript on that page will not run so forget about some pretty printing of say aura components. Back to basics, raw HTML / Visualforce. PageReference.getContentAsPDF()
If it's not acceptable to you - there are some JavaScript PDF generators, for example jspdf (Git, demos) describes in Git readme how to integrate a custom font into it. These tend to be hit and miss, you'll have to experiment. And well, it'd be a JavaScript solution so then you'd need extra steps to save it to a file maybe or prompt download... And forget about making a VF email template with it, it'd have to be somehow saved to files/attachments first

Utilities for exporting/printing graphs?

given that the functionality for exporting graphs to SVG or PNG in the Neo4j server page is broken (see SO article), are there any utilities out there that can export a graph from Neo? something that would produce a PDF perhaps?
With not many changes, you could make it work with http://www.cloudformatter.com/CSS2Pdf to format the SVGs in browser to PDF. That set of pages has some d3 samples like this: http://www.cloudformatter.com/CSS2Pdf.SVGCharts.d3Charts
I took one of the sample charts and rendered to PDF through the Javascript and the remote formatter. The page I selected was here and I took one of those charts:
http://graphgist.neo4j.com/#!/gists/1428842b2170702400451777c2bc813f
The code needs some minor change to ensure that Neo4j puts the svg namespace on the element. The samples on that page do not. But the rendering is near perfect. See the web page on the right and PDF result on the left. I only formatted the SVG and not the whole page (where the silver background exists) and that seems to be the only difference.

Edit header in Typo3

I have a website that is running on Typo3 CMS, this was all setup by our developer, problem is he doesn't work for us anymore, all I want to do is change the url of our company logo located at the header section, I have basic knowledge of HTML and CSS, I manage to move things around in the backend, but I don't know how to change the url of our logo.
It's possible that your developer has set it in:
Typoscript (e.g. PAGE TS)
template-File (index.html in /filedmin or fileadmin/templates)
As Content Element (at the top of the Tree)
CSS
A Mix of all of the Possibilities...
Perhaps a solution:
Type the current url of the Image in the Searchbox at Top of Backend.
Another Way to find out is via Firebug (Firefox).

some questions about web design methods

i have a question about web designing.
there are some ways for design.
CSS or Photoshop.
cSS is clear, my question is not about CSS, but about Photoshop design.
For example this
After design in photoshop when you save the work it makes sllices and converts your template to table cells and keeps each part of the picture in that cells..
but i know that nowdaystables are not usefull for web design, everybody use div and css..
so can u tell me how to export or how to use photoshop to design web pages with div.
I would not use Photoshop for anything other than to create a screenshot-type of graphic that is close to what you are aiming to get to with your web page(s).
For the actual design, start by laying out all of the content in HTML (no CSS). Once all of the content is in there, then you can style the elements to get to the look you want. When styling, the only changes you should be making to the HTML should be to put in IDs and classes to hook your CSS onto. Adding style-oriented elements like <div> and <span> is OK, but should be limited.
Doing the design in this way ensures that you will have a more accessible site, increases the likelyhood of having a more compact site, and will also increase your appeal to search engines.
These tutorials will help you:
http://www.blog.spoongraphics.co.uk/tutorials/encoding-a-photoshop-mockup-into-xhtml-css
Screencast:
http://net.tutsplus.com/articles/news/how-to-convert-a-psd-to-xhtml/
Photoshop software is mainly used for creating layout designs (psd's).
Now a day's everybody using table less designs using div's, almost 80% of HTML pages creating using styles and css only in few areas we have to use graphics (logos, headings with different fonts, images like photography etc) which is not manageable with style and css in that cases we have to work in Photoshop and have to do save for web format as jpeg or png image formats then we have to use this images in html pages with using style sheets.
and mainly div based designs will work with supporting of style sheets everything the layout look and feel we will control with css styles and calling that css as a class names from div's.
Hope this answer will help you a bit.
Thanks
Photoshop is an application for manipulating imagery but it's also packed with tools for building graphics from scratch.In order to explore graphic design within a browser it was only logical to reach for Photoshop, create your visuals, save them as images and use them within a web page.