Your cart is currently empty!
Ok! Fixed it with the plugin by Bill Erickson, POST GRID. and used his styling and short codes:
You have a bunch of options, to display certain posts, author, tags, it’s limitless.
Here is the short code which basically matches the format which came with Epik:
[display-posts image_size=”portfolio-thumbnail” wrapper=”div” wrapper_class=”display-posts-listing grid” meta_key=”_thumbnail_id” include_excerpt=”true” excerpt_more=”Continue Reading” excerpt_more_link=”true”]
Then you use CSS to style the output. The output is from the GENESIS-THEME SETTINGS- CONTENT ARCHIVE.. and the CSS is:
/* Grid style */
.display-posts-listing.grid {
display: grid;
grid-gap: 16px;
}
.display-posts-listing.grid .title {
display: block;
font-weight: bold;
color: Dark Blue;
}
.display-posts-listing.grid .excerpt-more {
display: block;
font-style: italic;
color: white;
background-color: #070049;
padding-left: 10px;
width: 50%;
}
.display-posts-listing.grid img {
display: block;
max-width: 100%;
height: auto;
}
You get error messages, to which he says to disregard.
So far, only ONE of my themes is not displaying properly, but the others are, so your original code is doing fine. It just can’t be changed as to number of posts displayed or columns, and I don’t want to change them from your original.
Unfortunately, you no longer seem able to set the number of posts displayed in the portfolio. Ie, my site has it set at 4, but I would like 8 before having to go to the “next page”.
Well, it appears to be in the ARCHIVE settings via the customizer. But it is missing a lot of functionality (I think).
Absolutely PERFECT and solved the issue. Thank you WES!!
There were numerous complaints all over on the Genesis FB page, and the Studio Press Community Forum..all with the same complaint.
I posted there the solution (I pasted your reply, if you don’t mind) to assist others.
Sad that they rolled out this without a clearer game plan. Yesterday I spend hours trying to find the error… and found a work around (directly pasting the URL in the style.css for the .front-page-1. However that did not restore functionality to the Customizer. Your fix has done that. Thanks again!!
Line 3415 in your CSS. Notice the colors in Epik are all listed. You need to change the color in that section, or any section to make it your own choice.
Here is the simple .css change of existing green to a different color green:
.epik-green .head-wrap,
.epik-green .welcome,
.epik-green .home-feature-bg-dark,
.epik-green .author-box,
.epik-green .footer-widgets {
background: #1c3f1a;
color: #eee;
}
Got it working. Don’t know WHAT was wrong. Setting up the “Blog” page showed content, but the Portfolio said “No content to show”. Then I swapped the template selection, cleared cache, and finally deleted the pages and menu items, and began again. Then it worked. Something goofy.
That doesn’t work unless you ALSO remove this from the functions.php:
//* Disables Default WooCommerce CSS
add_filter( 'woocommerce_enqueue_styles', 'jk_dequeue_styles' );
function jk_dequeue_styles( $enqueue_styles ) {
unset( $enqueue_styles['woocommerce-general'] ); // Remove the gloss
unset( $enqueue_styles['woocommerce-layout'] ); // Remove the layout
unset( $enqueue_styles['woocommerce-smallscreen'] ); // Remove the smallscreen optimisation
return $enqueue_styles;
}
All good now.
Holiday Home Te Koru
Is that your sight title? The current appearance is stacked.
HOLIDAY HOME
TE KORU
using the code I gave you it reads on one line:
HOLIDAY HOME TE KORU
and… I was able to change your menu bar from black to red.
So I am confused. Is this what you are asking?
Nav bar color line 1649 of your css. In this example, it’s changed to red.
/* Primary Navigation
--------------------------------------------- */
.nav-primary {
background-color: #f70808;
/*background-image: url(images/nav-bg.png);*/
text-align: center;
}
If you have sub-menus (drop down) you need to change those as well.
Those will be in the line beginning at 1581
.genesis-nav-menu .sub-menu a {
background-color: #f50303;
font-size: 12px;
padding: 20px;
position: relative;
width: 200px;
word-wrap: break-word;
}
Line 1463 of your css. ADD a width property.
.site-title {
font-family: 'Oswald', 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 36px;
font-weight: 400;
line-height: 1;
margin-bottom: 0;
min-width: 360px;
}
Ok… I commented out this from the functions.php :
//* Add WooCommerce Support
add_theme_support( 'genesis-connect-woocommerce' );
//* Disables Default WooCommerce CSS
//*add_filter( 'woocommerce_enqueue_styles', 'jk_dequeue_styles' );
//*function jk_dequeue_styles( $enqueue_styles ) {
//* unset( $enqueue_styles['woocommerce-general'] ); // Remove the gloss
//* unset( $enqueue_styles['woocommerce-layout'] ); // Remove the layout
//* unset( $enqueue_styles['woocommerce-smallscreen'] ); // Remove the smallscreen optimisation
//* return $enqueue_styles;
//*}
//* Load Custom WooCommerce style sheet
function wp_enqueue_woocommerce_style(){
wp_register_style( 'custom-woocommerce', get_stylesheet_directory_uri() . '/woocommerce/css/woocommerce.css' );
if ( class_exists( 'woocommerce' ) ) {
wp_enqueue_style( 'custom-woocommerce' );
}
}
add_action( 'wp_enqueue_scripts', 'wp_enqueue_woocommerce_style' );
// Change number or products per row to 4
add_filter('loop_shop_columns', 'loop_columns');
if (!function_exists('loop_columns')) {
function loop_columns() {
return 4; // 4 products per row
}
}
// WooCommerce | Display 30 products per page.
add_filter( 'loop_shop_per_page', create_function( '$cols', 'return 30;' ), 20 );
Just commented out the first part, prior to the “Load Woocommerce style sheet”.
The thumbnails returned. The Functionality appears to be back to normal, etc. So did the recent major update to Woo change the necessity for those lines disabling gloss, style, smallscreen?
What do I need to do Wes?
I set the “min-height: 1050px” in the section around line 2005 of your css and it made the image larger. But there is a problem with your slider… widget. Do you have the proper widget set in the area?
The image size depends where you are going to use it. You can use a larger (double) size image and set the size to 1/2 for Retina.
Most of my website images are run thru Photoshop and compressed (the “save for web”)..and then uploaded. A substantial saving in load time and file size.
Most computer monitor displays work well showing normal compressed images. I have tried both: very high quality uncompressed vs. edited compressed. Image quality was very acceptable for viewing at the lower size (file size)…and the load time was substantially improved. Very large files can really slow down your site..and make folks click away.
Lots of Google stuff on images and so on as it affects your site content and user experiences.
You do have the file in your theme page_portfolio.php? It didn’t get deleted or ??
<?php
// Template Name: Portfolio
// Adds Page Title
add_action( 'genesis_before_content', 'genesis_do_post_title' );
//Adds Page Content
add_action( 'genesis_before_loop', 'epik_do_portfolio_content' );
function epik_do_portfolio_content() {
echo '<div class="entry-content entry-portfolio" itemprop="text">' . get_post()->post_content . '</div>';
}
// Force layout to full-width-content
add_filter( 'genesis_site_layout', '__genesis_return_full_width_content' );
// Adds "portfolio" and "gallery clearfix" classes to every post
add_filter( 'post_class', 'portfolio_post_class' );
function portfolio_post_class( $classes ) {
$classes[] = 'portfolio';
$classes[] = 'gallery clearfix';
return $classes;
}
// Custom Read More link
add_filter( 'excerpt_more', 'portfolio_read_more_link' );
add_filter( 'get_the_content_more_link', 'portfolio_read_more_link' );
add_filter( 'the_content_more_link', 'portfolio_read_more_link' );
function portfolio_read_more_link() {
return '<a class="button more-link" href="' . get_permalink() . '" rel="nofollow">Read More</a>';
}
// Remove post info and meta info
remove_action( 'genesis_entry_footer', 'genesis_post_meta' );
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
/**
* Adds Featured Image and links it to the Post
*
* This is the default post image which links to the post it represents when clicked.
*
* @author Wes Straham
* @since 1.0.0
*/
add_action( 'genesis_entry_header', 'epik_portfolio_do_post_image' );
function epik_portfolio_do_post_image() {
$img = genesis_get_image( array( 'format' => 'html', 'size' => 'portfolio-thumbnail', 'attr' => array( 'class' => 'alignnone post-image' ) ) ); printf( '<a href="%s" title="%s">%s</a>', get_permalink(), the_title_attribute('echo=0'), $img );
}
// Move title below post image
remove_action( 'genesis_entry_header', 'genesis_do_post_title' );
add_action( 'genesis_entry_content', 'genesis_do_post_title', 9 );
// Remove default content for this Page Template
remove_action( 'genesis_entry_content', 'genesis_do_post_image', 8 );
remove_action( 'genesis_entry_content', 'genesis_do_post_content' );
// Add Content for the Portfolio posts in this Page Template
add_action( 'genesis_entry_content', 'epik_portfolio_do_post_content' );
function epik_portfolio_do_post_content() {
if ( genesis_get_option( 'epik_portfolio_content' ) == 'excerpts' ) {
the_excerpt();
} else {
if ( genesis_get_option( 'epik_portfolio_content_archive_limit' ) )
the_content_limit( (int)genesis_get_option( 'epik_portfolio_content_archive_limit' ), __( 'Read More', 'epik' ) );
else
the_content(__( 'Read More', 'epik' ));
}
}
// Outputs clearing div after every 2 posts
add_action( 'genesis_after_entry', 'portfolio_after_post_2' );
function portfolio_after_post_2() {
global $wp_query;
// Assumes 2 posts per row
$end_row = ( $wp_query->current_post + 1 ) / 2;
if ( ctype_digit( (string) $end_row ) ) {
echo '<div class="portfolio-clear"></div>';
}
}
// Outputs clearing div after every 3 posts
add_action( 'genesis_after_entry', 'portfolio_after_post_3' );
function portfolio_after_post_3() {
global $wp_query;
// Assumes 3 posts per row
$end_row = ( $wp_query->current_post + 1 ) / 3;
if ( ctype_digit( (string) $end_row ) ) {
echo '<div class="portfolio-clear-2"></div>';
}
}
// Remove standard loop
remove_action( 'genesis_loop', 'genesis_do_loop' );
// Add custom loop
add_action( 'genesis_loop', 'portfolio_loop' );
function portfolio_loop() {
$paged = get_query_var( 'paged' ) ? get_query_var( 'paged' ) : 1;
$include = genesis_get_option( 'epik_portfolio_cat' );
$exclude = genesis_get_option( 'epik_portfolio_cat_exclude' ) ? explode(',', str_replace(' ', '', genesis_get_option( 'epik_portfolio_cat_exclude' ))) : '';
$cf = genesis_get_custom_field( 'query_args' ); // Easter Egg
$args = array( 'cat' => $include, 'category__not_in' => $exclude, 'showposts' => genesis_get_option( 'epik_portfolio_cat_num' ), 'paged' => $paged);
$query_args = wp_parse_args($cf, $args);
genesis_custom_loop( $query_args );
}
?> <body <?php body_class('portfolio'); ?>>
<?php
genesis();
Line 1371 of your .css
.sidebar .featured-content .entry {
padding: 20px;
}
This moves the image slightly towards center, with the margin increased. I used 20px, you can adjust.
First set up a page and name it Portfolo (will show on menu). No content in it.
The portfolio page pulls images and content from your “blog posts”. Be sure you have posted some, setting a featured image.
On the Genesis – Theme Settings – Portfolio page, you can select your appearance options.
I added this
.home-top .flexible-widgets {
background: url(https://vscustomhats.com/wp-content/uploads/2017/03/Art-Small-WEB.jpg) no-repeat!important;
background-position: center !important;
background-size: cover !important;
height: 100%;
width: 100%;
}
It substitutes the image to a smaller one. But my confusion is, how come placing an image in one of the other widget sections (ie. welcome) will resize, but using it in the Front Page Background Image..will not?
Anyway, the issue is solved. Check out the site..I’m going to put it back into maintenance mode until I can figure out a way to “introduce” it to my unknowing friend.
I added your code to the landing page and tried it on my theme…still functions perfectly.
Don’t know what..but I just went to your web via the above link. Your page is perfect.
Blue button at bottom is dead center, and everything is as it should be.
Are you using Chrome browser? I have installed a Cache Killer…because Chrome is terribly aggressive and it really confounds updating/refreshing.
I am using a 27 inch monitor. Pretty big resolution.
<p style="text-align: center;">Een tandarts voor uzelf, uw kinderen of ouders;
Onze tandartspraktijk is gelegen op de grens van Haarlem centrum en Haarlem zuid.</p>
<div class="one-half first">
<div class="left-content"><i class="fa fa-compass fa-2x"></i></div>
<div class="right-content"><h3>Vaste tandarts</h3>
In onze praktijk voert steeds dezelfde tandarts de regie over de aan u geboden zorg.</div>
</div>
<div class="one-half">
<div class="left-content"><i class="fa fa-comments-o fa-2x"></i></div>
<div class="right-content"><h3>Wij nemen de tijd om te luisteren</h3>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>
</div>
<div class="one-half first">
<div class="left-content"><i class="fa fa-diamond fa-2x"></i></div>
<div class="right-content"><h3>Global Support</h3>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>
</div>
<div class="one-half">
<div class="left-content"><i class="fa fa-smile-o fa-2x"></i></div>
<div class="right-content"><h3>Cosmetische tandheelkunde</h3>
Om het u makkelijker te maken ons buiten werktijd te bezoeken zijn wij op donderdagavond tot 21u geopend.</div>
</div>
<div class="one-half first">
<div class="left-content"><i class="fa fa-thumbs-o-up fa-2x"></i></div>
<div class="right-content"><h3>Global Support</h3>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>
</div>
<div class="one-half">
<div class="left-content"><i class="fa fa-clock-o fa-2x"></i></div>
<div class="right-content"><h3>Avondopening</h3>
Om het u makkelijker te maken ons buiten werktijd te bezoeken zijn wij op donderdagavond tot 21u geopend.</div>
</div>
<p class="center" style="text-align: center;"><a class="button large" href="https://tandarts-haarlem.nl">Klik hier voor meer informatie</a></p>
<!--formatted-->
This works perfectly on three of my Genesis themes (including Appfinite’s Epik and Legacy). Used on a blank web page, and in a text widget for the home page. Everything lines up perfectly. You may have additional code on your page.
Try placing this in a text widget with no other code, and put it into one of your widget containers. There is nothing wrong with your code, it produces perfectly.
I cut and pasted your code to my website and it works perfectly.
Have you cleared your cache? I don’t see any issue.
There it is! Ok. I am going to remove it. My personal choice is to add images directly to a page, and utilize the “Featured Image” for posts/pages for the Portfolio or Featured Page Widget. Don’t want it “front and center” on a page.
Are you using the same Epik? The theme was updated and the “color” sections were removed and replaced with the customizer in the admin panel.
It’s in Customizer – Colors. You click the box and the whole color pallet opens up.
Line # 1836 of your .css
.entry-categories, .entry-tags {
display: none;
<p style="border-radius: 20px; border: 5px solid rgba(76, 175, 80, 0.9); margin: 30px; box-shadow: rgba(0, 0, 0, 0.5) 15px 15px 15px; text-align: center; background-image:
url('http://www.baypointrodandgun.com/wp-content/uploads/2017/02/SPDWEB-opacity.jpg');">
<em><span style="font-size: 20pt; color: #000000;"><strong>
<span style="font-family: 'comic sans ms', sans-serif;">The March club meeting is our annual
Corned Beef & Cabbage - Trophy awards dinner!
Saturday March 18th.</span></strong></span></em></p>
This is a sample of how to put an image inside a text box. It includes rounded edges (border radius), color outline border, a box shadow, image, and text. YOU can copy this and insert your image URL to replace the one in the example. Also change the text.
Do you have a link to your site? Need it to look…..
Lojze,
The way to do this is to use TABLE PRESS, a plugin. Same one used in your example. I use it for making “spreadsheet” style event calendars (tables). You can use hyperlinks in the entry boxes. The tables are also customizable, and responsive.
You could make procduct pages (as in your example) or use it for school, busines,or social events, where the person clicks the text in the table and it takes them to a page, or a .pdf file.
I highly recommend it.
Admin Panel
Customizer
Front Page Content Settings
Select: HIDE CONTENT SECTION
Chrome has an aggressive cache. SHIFT+Refresh..!!!!
Sometimes you change code and it doesn’t “take” and then you try something different and the snowball rolls to the point you get lost in what is what.
Open one tab with your website edit, and another with your website. That way, you can change a bit of code and not close the window..just click the other tab, refresh and see if it worked.
Since all websites are built differently, and have their code in different places (most code is similar from design to design, BTW)… when you ask a question in this forum, I open your website and click the area you are asking about, find the code, and then make a change. It’s easy. On the Studio Press forum…almost anyone who logs in to ask a question, and here on Appfinite as well, you are asked to “post a link to your site”. That way, it can be viewed and “inspected” to see what is going on, or if someone changed a code, etc. It’s the “tool” to discover what you’ve got.
Firebug is also excellent for this purpose also.
All those “how” questions: to find the section, and how to change the code…
This is how you find out what to do with changing colors, etc. in your .css:
USE INSPECT ELEMENT. Open the website (any) and right click your mouse, the window pops up with
an “INSPECT” at the bottom. Click that.
A panel opens up at the bottom…and as you mouse over different parts of your webpage,
you can see the associated code revealed, as well as certain sections being highlighted.
THIS is how you can quickly look and see where to change a background color, etc.
As posted in an earlier reply…you open your website, and right mouse click, the popup window has “INSPECT’ at the bottom. Click that, and a window opens up at the bottom of the screen. You can then “mouse over” areas of your website to target items on the page, and the proper code section appears in the below window. You can make changes to “test” out your desired colors, widths, etc.
.front-page-2 {
margin-left: auto;
margin-right: auto;
margin-top: -160px;
position: relative;
width: 100%;
}
Line 1547 change the width from “1000px” to “100%”
.front-page-2 .image-section {
background: #4e38fa;
padding: 60px 0 20px;
}
Line 1536 of your css
.front-page-1 .flexible-widgets {
background: url( http://andykev.com/wp-content/uploads/2017/01/Craig-Beckta.jpg) no-repeat!important;
background-position: center !important;
background-size: cover !important;
background-repeat: no-repeat;
height: 100%;
width: 100%;
}
THe ABOVE IS CORRRRECT. I made a mistake copying the code. This will work for your site. I have left my URL here for you to see. Replace it with your URL when you upload the proper image to your media library. I simply downloaded your image and cropped it. You may want to play with the image to make it nice. As shown it’s pretty close.
Here is an example of a website:
http://www.baypointrodandgun.com/
It is using the Genesis Outreach, but the concept is the same for your theme. Notice on this example, the size of the header is responsive as you manipulate the screen (shrink it on your browser)..and at the smallest settings (480px) the image changes to the customer’s logo. This is because the full size header with text properly shrank, but it looked “TINY”..so the big logo kicks in.
You can do the same by cropping your “head shot” of you and with the proper resolution and size…a properly fit image will appear on the requesite sized screen.
You are asking the theme to change your image responsively, to the Iphone size?
Need to make a new image properly sized and resolution for your “small screen”. This means taking the “head shot” of you, and editing it to fit on the smalll screen and share that space with the text.
You do this by having different images loaded in your media library, and then “trigger” them to replace the full size “desktop” image. That desktop image resizes down to a point..but you get to a size reductin where your image simply won’t fit.
The easy way is to add this to the @media only section.
@media only screen and (max-width: 550px) {
.image-section, .image-section a {
background: url(http://YOUR IMAGE URL GOES HERE.png) no-repeat!important;
background-position: center !important;
background-size: contain !important;
height: 100%;
width: 100%;
}
BTW, when you use “inspect” any changes you make go away when you close the browser, or go to a different page. That is a safe way to try out different settings without “really” changing them. So if you want to decide a header color, you can “inspect” that area, and the color can be adjusted to whatever you want… save the “#000000” or other..to then actually put in your css.
Line 1115
.fp2 .enews-widget input[type=”submit”] {
background-color: #34bb5c;
}
This is how you find out what to do with changing colors, etc. in your .css:
USE INSPECT ELEMENT. Open the website (any) and right click your mouse, the window pops up with
an “INSPECT” at the bottom. Click that.
A panel opens up at the bottom…and as you mouse over different parts of your webpage,
you can see the associated code revealed, as well as certain sections being highlighted.
THIS is how you can quickly look and see where to change a background color, etc.
Line 1499 of your theme .css:
.fp2 {
background: #FF5722;
clear: both;
color: #fff;
overflow: hidden;
padding: 60px 0;
}
Update: Now the icons WILL NOT work! Changed computers. Worked without issue on my laptop and switching to desktop, the icons are static.
However, as soon as I launch “inspect element” to view code, the icons begin to work. Closing the “inspect element” tool then the icons no longer work.
Maybe an issue with the .js fade up? Not sure.
Wes, YES the links (all three) are fully functional. I am on CHROME. I will try it on Firefox…
Yep works on Firefox also. I am on Widows 10 also.
In MS Edge browser, FB link will not click…Linkd In and Twitter are functional.
In IE browser…all three work.
Weird..!
Here is the code area to change the color of the icon background:
.simple-social-icons ul li a, .simple-social-icons ul li a:hover, .simple-social-icons ul li a:focus {
background-color: #7343ef !important;
border-radius: 4px;
color: #ffffff !important;
border: 0px #ffffff solid !important;
font-size: 20px;
padding: 10px;
}
The blue (as I did in the above, make them “pop out” in the footer. Just a preference I have. You can use any contrast color, like light grey by using a different color in the “background-color” section.
I just visited your website and all three social icons take you to your external links….FB, Linkdin, and Twitter.
Did you clear your cache? Chrome cache?
Never mind! WOW. I have downloaded it and tested it on development site…and it’s MUCH nicer. You’ve done it again!
Now the hard part is carefully saving my .css stuff for the new site.
All the info is in the DEMO Tutorial.
Yes. The old has set colors, the new has a color customizer so you can select any scheme you want. The header/menu is different. There is a “fade up” effect, and the header resizes when you scroll down. It’s a very nice upgrade..totally different .css and .php function codes largely.
David,
We’ve used Envira Gallery for four of our websites. I used to use Nextgen but it had problems..big issues (unrelated to the theme)..you can read up on the reviews.
Envira has a free and a paid version. I love it, as I can do slide shows, galleries, or masonry presentations. Check it out. I got the Full with unlimited lifetime…and since I am using it on several sites, the customers paid for it. It has a lot of “add on” features.
They have a .css add on as well to let you customize each gallery.
I found it to be easy to use, and quite stable. I had one issue with the “deep linking” add on, and their support was almost immediate.
PS your site is very nice.
Perfect! I was so focused on finding the “code” I must of had a “Brain Freeze”. Lots of that going around this season!
Dave,
You can achieve the “look” of the home page by using a separate slider on the “interior” pages of your website, and use “Column Classes” to replaicate the balance of each page.
The “Home Page” has widgets, and inside those are .css to format the columns and text/images.
I use Sollioquy http://soliloquywp.com/ for sliders on my internal pages…and then use either portfolio or column classes to format pages where that look is desired.
You’d have to do a lot of coding to have a whole site of “home pages”. However,
there is a plugin called Widgetize Pages Light which allows you to add a widget to other pages.