<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Chem Expert Industry</title>
	<atom:link href="https://chem-expert.ro/feed/" rel="self" type="application/rss+xml" />
	<link>https://chem-expert.ro</link>
	<description>Solutii de curatare chimica pentru industrie</description>
	<lastBuildDate>Fri, 19 Mar 2021 10:44:32 +0000</lastBuildDate>
	<language>ro-RO</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://chem-expert.ro/wp-content/uploads/2024/09/cropped-logo-4-32x32.png</url>
	<title>Chem Expert Industry</title>
	<link>https://chem-expert.ro</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Hello world!</title>
		<link>https://chem-expert.ro/hello-world/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=hello-world</link>
					<comments>https://chem-expert.ro/hello-world/#respond</comments>
		
		<dc:creator><![CDATA[admas]]></dc:creator>
		<pubDate>Fri, 19 Mar 2021 10:44:32 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<guid isPermaLink="false">http://chem-expert.ro/?p=1</guid>

					<description><![CDATA[<p>Welcome to WordPress. This is your first post. Edit or delete it, then start writing!</p>
<p>The post <a href="https://chem-expert.ro/hello-world/">Hello world!</a> first appeared on <a href="https://chem-expert.ro">Chem Expert Industry</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Welcome to WordPress. This is your first post. Edit or delete it, then start writing!</p><p>The post <a href="https://chem-expert.ro/hello-world/">Hello world!</a> first appeared on <a href="https://chem-expert.ro">Chem Expert Industry</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://chem-expert.ro/hello-world/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>General CSS Styling</title>
		<link>https://chem-expert.ro/general-css-styling/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=general-css-styling</link>
					<comments>https://chem-expert.ro/general-css-styling/#respond</comments>
		
		<dc:creator><![CDATA[admas]]></dc:creator>
		<pubDate>Sat, 29 Jun 2019 03:18:28 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<guid isPermaLink="false">https://gpsites.co/niche/?p=388</guid>

					<description><![CDATA[<p>This article covers the general styling used across the site. Specific template or element styling may be covered in their own posts. All Custom CSS is in the Customizer > Additional CSS. Theme Elements Navigation ... </p>
<p class="read-more-container"><a title="General CSS Styling" class="read-more button" href="https://chem-expert.ro/general-css-styling/#more-388" aria-label="Citește mai multe despre General CSS Styling">Read more</a></p>
<p>The post <a href="https://chem-expert.ro/general-css-styling/">General CSS Styling</a> first appeared on <a href="https://chem-expert.ro">Chem Expert Industry</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>This article covers the general styling used across the site. Specific template or element styling may be covered in their own posts. All Custom CSS is in the Customizer > Additional CSS.</p>



<h2 class="wp-block-heading">Theme Elements</h2>



<h3 class="wp-block-heading">Navigation underline</h3>



<p>Add shadow border to navigation to match sticky navigation.</p>



<pre class="wp-block-code"><code>.main-navigation {
    box-shadow: 0 2px 2px -2px rgba(0, 0, 0, .2);
}</code></pre>



<h3 class="wp-block-heading">Navigation Search</h3>



<p>Add background color to Navigation Search</p>



<pre class="wp-block-code"><code>.navigation-search {
    background-color: #fafafa;
}</code></pre>



<p></p><p>The post <a href="https://chem-expert.ro/general-css-styling/">General CSS Styling</a> first appeared on <a href="https://chem-expert.ro">Chem Expert Industry</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://chem-expert.ro/general-css-styling/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>The Single Product</title>
		<link>https://chem-expert.ro/the-single-product/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=the-single-product</link>
					<comments>https://chem-expert.ro/the-single-product/#respond</comments>
		
		<dc:creator><![CDATA[admas]]></dc:creator>
		<pubDate>Sat, 29 Jun 2019 02:44:57 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<guid isPermaLink="false">https://gpsites.co/niche/?p=376</guid>

					<description><![CDATA[<p>Niche brings a new layout to the Single Product by introducing a stacked gallery for desktop, moves the Woocommerce breadcrumb and makes the summary Sticky. To do this required, guess what some Hook Elements and ... </p>
<p class="read-more-container"><a title="The Single Product" class="read-more button" href="https://chem-expert.ro/the-single-product/#more-376" aria-label="Citește mai multe despre The Single Product">Read more</a></p>
<p>The post <a href="https://chem-expert.ro/the-single-product/">The Single Product</a> first appeared on <a href="https://chem-expert.ro">Chem Expert Industry</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Niche brings a new layout to the Single Product by introducing a stacked gallery for desktop, moves the Woocommerce breadcrumb and makes the summary Sticky. To do this required, guess what some Hook Elements and some CSS.</p>



<h2 class="wp-block-heading">Breadcrumb</h2>



<h3 class="wp-block-heading">#Hook 1 &#8211; Woo Breadcrumb Single product</h3>



<p>Like the Shop page we are manually adding our breadcrumb. It&#8217;s hooked into the <code>woocommerce_single_product summary</code> and positioned at the top by setting the priority to 0 (zero).</p>



<pre class="wp-block-code"><code>&lt;?php woocommerce_breadcrumb(); ?></code></pre>



<p>Then a little font styling for the breadcrumb and product meta and creating a bit of space:</p>



<pre class="wp-block-code"><code>.product_meta>span,
.woocommerce-breadcrumb {
    text-transform: uppercase;
    font-size: 12px !important;
    font-weight: 500;
}

.woocommerce div.product div.summary .woocommerce-breadcrumb {
    margin-bottom: 40px;
}</code></pre>



<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>



<h2 class="wp-block-heading">Gallery Stack and Sticky Summary</h2>



<h3 class="wp-block-heading">#Hook 2 &#8211;  Gallery Stack</h3>



<p>Our first hook does all of the heavy lifting. Let&#8217;s take a look at the code:</p>



<pre class="wp-block-code"><code>&lt;div class="woo-sumamry-wrap">&lt;!-- open wrap -->
&lt;div class="woo-gallery-stack hide-on-mobile">
&lt;?php if ( has_post_thumbnail( $product->id ) ) {
    $attachment_ids[0] = get_post_thumbnail_id( $product->id );
    $attachment = wp_get_attachment_image_src($attachment_ids[0], 'full' ); ?>    
    &lt;img src="&lt;?php echo $attachment[0] ; ?>"/>
&lt;?php }	

global $product;
$product_image_ids = $product->get_gallery_image_ids();

foreach( $product_image_ids as $product_image_id ) {
    $image_url = wp_get_attachment_url( $product_image_id );
    echo '&lt;img src="'.$image_url.'">';
}?>
&lt;/div></code></pre>



<h4 class="wp-block-heading">First we create the Wrap</h4>



<p>The first line of code <code>&lt;div class="woo-summary-wrap"&gt;&lt;!-- open wrap --&gt;</code> opens a wrap around the gallery, summary and tabs. This is what constrains the sticky summary from overlapping with our full width related products.</p>



<p>The code savy will notice our <code>woo-summary-wrap</code> doesn&#8217;t actually close off ie. no <code>&lt;/div&gt;</code>. But don&#8217;t be alarmed, everything is ok.</p>



<h4 class="wp-block-heading">Then we create the Stack</h4>



<p>The rest of the code checks to see if thumbnails exists and then outputs the main featured image followed by a loop containing the other product images.  </p>



<p>The gallery stack uses the full size image. It is advisable to upload images to suit this size. In the current setup we have a container width of 1320px. The gallery occupies around 60% of that width. This means the optimum full size image is around 800px wide.</p>



<p>As these are the exact same images as used in the Gallery Carousel ( Magnification ) there is no double loading of images.</p>



<h3 class="wp-block-heading">#Hook 3 &#8211; Close Summary Wrap</h3>



<p>Well it&#8217;s all in the title and finished off the piece of code in our first hook.</p>



<pre class="wp-block-code"><code>&lt;/div>
&lt;!-- Close gallery wrap --></code></pre>



<h3 class="wp-block-heading">CSS Styling to hide elements and make bits sticky</h3>



<p>So the following CSS does several things:</p>



<ol class="wp-block-list"><li>Hide the default Woocommerce Gallery Carousel on Desktop.</li><li>Creates a 2 column grid to separate our images and our summary.</li><li>Adds some space (  bottom margin ) between our images.</li><li>Positions our summary and makes it sticky.</li><li>Repositions the Sale sticker over the image.</li></ol>



<pre class="wp-block-code"><code>@media (min-width: 768px) {
    .woocommerce-product-gallery {
        display: none;
    }

    .woo-sumamry-wrap {
        display: grid;
        grid-template-columns: 60% 40%;
        grid-template-rows: auto;
        margin-bottom: 80px;
    }

    .woo-gallery-stack {
        grid-column: 1;
        grid-row: 1 / 3;
    }

    .woo-gallery-stack img {
        margin-bottom: 20px;
    }

    .woocommerce-tabs {
        grid-column: 1;
    }

    .woocommerce div.product div.summary {
        grid-column: 2;
        grid-row: 1;
        margin-left: 80px;
        position: -webkit-sticky;
        position: sticky;
        top: 105px;
        bottom: 100px;
        padding-right: 80px;
    }

    .single-product span.onsale {
        position: absolute;
        top: 0;
    }
}</code></pre>



<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>



<h2 class="wp-block-heading">General Styling</h2>



<p>Just a little adjustment to the top margin on the pricing:</p>



<pre class="wp-block-code"><code>.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce div.product p.price ins {
    margin-top: 10px;
}</code></pre><p>The post <a href="https://chem-expert.ro/the-single-product/">The Single Product</a> first appeared on <a href="https://chem-expert.ro">Chem Expert Industry</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://chem-expert.ro/the-single-product/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>The Shop</title>
		<link>https://chem-expert.ro/how-the-shop-was-made/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-the-shop-was-made</link>
					<comments>https://chem-expert.ro/how-the-shop-was-made/#respond</comments>
		
		<dc:creator><![CDATA[admas]]></dc:creator>
		<pubDate>Sat, 29 Jun 2019 01:55:00 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<guid isPermaLink="false">https://gpsites.co/niche/?p=349</guid>

					<description><![CDATA[<p>The advanced Woocommerce features in GeneratePress Premium 1.8 has allowed my to divulge in some new custom functions and styling. Upon visiting the Shop page you will see several custom elements and styles. Category Navigation ... </p>
<p class="read-more-container"><a title="The Shop" class="read-more button" href="https://chem-expert.ro/how-the-shop-was-made/#more-349" aria-label="Citește mai multe despre The Shop">Read more</a></p>
<p>The post <a href="https://chem-expert.ro/how-the-shop-was-made/">The Shop</a> first appeared on <a href="https://chem-expert.ro">Chem Expert Industry</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>The advanced Woocommerce features in GeneratePress Premium 1.8 has allowed my to divulge in some new custom functions and styling. Upon visiting the Shop page you will see several custom elements and styles.</p>



<ul class="wp-block-list"><li>Category Navigation below entry title</li><li>Off Canvas Filter Toggle</li><li>Repositioned Breadcrumb</li><li>Minimal styled shop grid with hover add to cart effect</li></ul>



<h2 class="wp-block-heading">Hook Elements</h2>



<p>Niche uses two GeneratePress Hook Elements. You can read the <a href="https://docs.generatepress.com/article/hooks-element-overview/">documents for hooks here</a>. The shop uses two hook Elements.</p>



<ul class="wp-block-list"><li>Woocommerce Shop Category Menu</li><li>Woo Shop Filter and Breadcrumb</li></ul>



<p>Both of these elements display rules are set to our Product Archive ( The Shop ) and Product Category Archives.</p>



<h3 class="wp-block-heading">Hook #1 &#8211; Woocommerce Shop Category Menu</h3>



<p>To aid with navigation across categories our first hook adds  a simple category menu to the <strong>woocommerce_archive_description</strong>.</p>



<pre class="wp-block-code"><code>&lt;?php
$orderby = 'name';
$order = 'asc';
$hide_empty = true ;
$cat_args = array(
    'orderby'    => $orderby,
    'order'      => $order,
    'hide_empty' => $hide_empty,
);
 
$product_categories = get_terms( 'product_cat', $cat_args );
 
if( !empty($product_categories) ){
    echo '
 
&lt;ul class="woo-cat-nav">';
    foreach ($product_categories as $key => $category) {
        echo '
 
&lt;li>';
        echo '&lt;a href="'.get_term_link($category).'" >';
        echo $category->name;
        echo '&lt;/a>';
        echo '&lt;/li>';
    }
    echo '&lt;/ul>
 
';
}
?></code></pre>



<p>It simply outputs a list of all categories that contain a product. We then use some CSS to style the list:</p>



<pre class="wp-block-code"><code>.woo-cat-nav {
    list-style-type: none;
    margin-left: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 80px;
}

.woo-cat-nav li {
    padding: 5px 0;
    margin: 0 10px;
    border-bottom: 1px solid #ccc;
    font-size: 0.95em;
}</code></pre>



<p>As each of the list items are a link they get their colors from the link colors we set in the customizer. Apart from the border color which is within the CSS above.</p>



<h3 class="wp-block-heading">Hook #2 &#8211; Woo Shop Filter and Breadcrumb</h3>



<p>Then we add two functions to <code>woocommerce_before_shop_loop</code> hook. First is a custom <a href="https://docs.generatepress.com/article/off-canvas-panel-overview/">Off Canvas Panel</a> toggle and second is the Woocommerce Breadcrumb. </p>



<h4 class="wp-block-heading">Woo Shop Filter</h4>



<p>The first function in our hook is some simple HTML:</p>



<pre class="wp-block-code"><code>&lt;span class="slideout-toggle woo-filter-toggle hide-on-mobile">&lt;a href="#">FILTER&lt;/a>&lt;/span></code></pre>



<p>The <code>&lt;span&gt;</code> tag contains three classes. The<code> slideout-toggle</code> is what GeneratePress requires to trigger the opening of the off canvas panel. The <code>woo-filter-toggle</code> is our own custom class we use to style and position the toggle. And lastly <code>hide-on-mobile</code>, i am sure you can figure out what this does.</p>



<p>For our woo filter toggle to appear we have set  Customizer &gt; Layout &gt; Off Canvas Panel to display on Desktop and Mobile.</p>



<p>We now need to remove the toggle from the Primary Navigation on Desktop ( it&#8217;s default location ) we have to hide it using some CSS:</p>



<pre class="wp-block-code"><code>.main-navigation ul li.slideout-toggle {
    display: none !important;
}</code></pre>



<h4 class="wp-block-heading">Breadcrumb</h4>



<p>Here is our second function to add our breadcrumb inline with our filter toggle:</p>



<pre class="wp-block-code"><code>&lt;span class="hide-on-mobile">&lt;?php woocommerce_breadcrumb(); ?>&lt;/span></code></pre>



<p>It uses the default woocommerce function. So as it doesn&#8217;t display twice on the page we disabled the themes breadcrumb position in Customizer &gt; Layout &gt; Woocommerce.</p>



<h4 class="wp-block-heading">Positioning and styling the filter and breadcrumb</h4>



<p>Positioning and styling our toggle and breadcrumb requires this CSS:</p>



<pre class="wp-block-code"><code>.woo-filter-toggle,
.woocommerce.archive .woocommerce-breadcrumb {
    padding: 10px 0;
    margin-right: 20px;
    float: left;
    font-size: 14px;
    line-height: 20px;
}</code></pre>



<p>To make room for our filter toggle and breacrumb and to keep the styles in line we need a little more CSS. First to shift over the product count and then style the sorting selector.</p>



<pre class="wp-block-code"><code>.woocommerce .woocommerce-result-count {
    float: right;
    margin-right: 20px;
}

.woocommerce-ordering select {
    text-transform: uppercase;
    max-width: 200px;
    border: 0;
}</code></pre>



<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>



<h2 class="wp-block-heading">Custom Post Grid</h2>



<p>Most of our shop styling has been set using the Theme customizer, from typograpghy and colors to the layout of our shop and single product page. But to add a little something more unique the obligatory Flint Skin CSS magic has bee applied. </p>



<h3 class="wp-block-heading">Custom CSS</h3>



<p>Lets step through each of the changes:</p>



<h4 class="wp-block-heading">Reduced grid Gap</h4>



<p>No GeneratePress uses CSS Grid for the shop its super simple to reduce ( or increase ) our grid gap. This is being applied to all responsive sizes.</p>



<pre class="wp-block-code"><code>.wc-columns-container .products,
.woocommerce .related ul.products,
.woocommerce .up-sells ul.products {
    grid-gap: 20px;
}</code></pre>



<h4 class="wp-block-heading">Remove Add to Cart button styling</h4>



<p>I wanted a normal looking link for our add to cart by removing the padding and background color. and inheriting the body text color.</p>



<pre class="wp-block-code"><code>.woocommerce ul.products li.product a.button {
    padding: 5px 0;
    color: inherit;
    background-color: transparent;
}
</code></pre>



<h4 class="wp-block-heading">Show Add to Cart / Hide Price on Hover</h4>



<p>For our desktop view we can afford to hide our add to cart. I think it looks better then a page full of buttons. </p>



<pre class="wp-block-code"><code>@media (min-width: 768px) {

    .woocommerce ul.products li.product a.button {
        transform: translateY(0);
        width: 100%;
        opacity: 0;
        transition: all 0.4s;
    }

    .woocommerce ul.products li.product:hover a.button,
    .woocommerce ul.products li.product:hover .price {
        transform: translateY(calc(-100% - 10px));
        opacity: 1;
    }

    .woocommerce ul.products li.product .price {
        opacity: 1;
        transition: all 0.4s;
    }

    .woocommerce ul.products li.product:hover .price {
        opacity: 0;
        transform: translateY(calc(-100% - 10px));
    }
}</code></pre>



<p></p><p>The post <a href="https://chem-expert.ro/how-the-shop-was-made/">The Shop</a> first appeared on <a href="https://chem-expert.ro">Chem Expert Industry</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://chem-expert.ro/how-the-shop-was-made/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Off Canvas Panel</title>
		<link>https://chem-expert.ro/off-canvas-panel/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=off-canvas-panel</link>
					<comments>https://chem-expert.ro/off-canvas-panel/#respond</comments>
		
		<dc:creator><![CDATA[admas]]></dc:creator>
		<pubDate>Sat, 29 Jun 2019 01:46:40 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<guid isPermaLink="false">https://gpsites.co/niche/?p=367</guid>

					<description><![CDATA[<p>The Off Canvas Panel provides more then another place to add your navigation. With Widget Areas and Hooks it can be loaded with extra elements. As covered in the How the Show was made post ... </p>
<p class="read-more-container"><a title="Off Canvas Panel" class="read-more button" href="https://chem-expert.ro/off-canvas-panel/#more-367" aria-label="Citește mai multe despre Off Canvas Panel">Read more</a></p>
<p>The post <a href="https://chem-expert.ro/off-canvas-panel/">Off Canvas Panel</a> first appeared on <a href="https://chem-expert.ro">Chem Expert Industry</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>The Off Canvas Panel provides more then another place to add your navigation. With Widget Areas and Hooks it can be loaded with extra elements. As covered in the How the Show was made post we have done a little bit of fancy work to create a Shop filter as well as provide our Mobile Navigation.</p>



<p>You should begin by getting to know the panel. <a href="https://docs.generatepress.com/article/off-canvas-panel-overview/">Read this for more information</a>.</p>



<h2 class="wp-block-heading">Widgets</h2>



<p>Widgets are added in the Customizer &gt; Layout &gt; Widgets &gt; Off Canvas Panel or via the Dashboard &gt; Appearance &gt; Widgets. We have used Woocommerce Widgets. These types of widget are dynamic. For example the price and attribute filters only display on the Shop and Archive Pages.</p>



<p>A little bit of CSS to tidy up the Woo Widgets and divide them with some borders:</p>



<pre class="wp-block-code"><code>.slideout-widget.woocommerce ul li {
    line-height: 2em;
    display: grid;
    grid-template-columns: 0 90% 10%;
}

.slideout-navigation .slideout-widget ul.product-categories li {
    grid-template-columns: 90% 10%;
}

.slideout-widget {
    border-top: 1px solid #ccc;
    padding-top: 2em;
}</code></pre>



<h2 class="wp-block-heading">No Desktop Navigation Toggle</h2>



<p>As covered in the Shop article the standard Navigation Toggle for desktop as been hidden as we&#8217;re using it for our Filter Widgets.</p><p>The post <a href="https://chem-expert.ro/off-canvas-panel/">Off Canvas Panel</a> first appeared on <a href="https://chem-expert.ro">Chem Expert Industry</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://chem-expert.ro/off-canvas-panel/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
