Hey!
This gray square is the gallery BIO PHOTOS (http://www.screencast.com/t/F88bm8pfB). I do not want this gallery, BIO PHOTOS, to mix with the others.
Sorry but there is a little misconception here, that gray square has nothing to do with the “Bio” portfolio item. It is there because you have selected 4 Columns for your Masonry and there is only 3 elements with a “square” thumbnail so as there is no 4rd square element to show, the Masonry has to display an empty space. I’ve change it to 3 Columns so you can see what i mean.
Best regards,
Josue
So from what i’v read the og meta should be added to the functions.php
I tried this from this guide
//Adding the Open Graph in the Language Attributes
02
function add_opengraph_doctype( $output ) {
03
return $output . ' xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://www.facebook.com/2008/fbml"';
04
}
05
add_filter('language_attributes', 'add_opengraph_doctype');
06
07
//Lets add Open Graph Meta Info
08
09
function insert_fb_in_head() {
10
global $post;
11
if ( !is_singular()) //if it is not a post or a page
12
return;
13
echo '<meta property="fb:admins" content="148882508634598"/>';
14
echo '<meta property="og:title" content="Golfbaren | Minigolf och maximys"/>';
15
echo '<meta property="og:type" content="website"/>';
16
echo '<meta property="og:url" content=http://www.golfbaren.se/>';
17
echo '<meta property="og:site_name" content="Golfbaren.se"/>';
echo '<meta property="og:description" content="Kom och spela minigolf på konstgräs av bästa kvalitet, en putt från T-banan och alldeles intill Kristinebergs Slottspark." />';
18
if(!has_post_thumbnail( $post->ID )) { //the post does not have featured image, use a default image
19
$default_image="http://example.com/image.jpg"; //replace this with a default image on your server or an image in your media library
20
echo '<meta property="og:image" content="http://www.golfbaren.se/wp-content/themes/golfbaren/golfbaren/img/fb_logo.jpg"/>';
21
}
22
else{
23
$thumbnail_src = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'medium' );
24
echo '<meta property="og:image" content="' . esc_attr( $thumbnail_src[0] ) . '"/>';
25
}
26
echo "
27
";
28
}
29
add_action( 'wp_head', 'insert_fb_in_head', 5 );
But then i can’t access the site due to a function.php error on the line where i pasted this.
Any idea what i’m doing wrong ?
This reply has been marked as private.
Hi I love your theme and it’s very pleasant to work with. I’ve tried searching for an answer on the support first but I couldn’t find a solution. The problem is: The masonry element is not showing the thumbnails on safari on first load…. However if you make your screen slightly smaller or bigger they start to show… Any idea how to solve this, as it does seem to work but just not on the first load of the page… (I’m talking about safari 5.1.10 either on a mac or on a pc….
thanks in advance! Keep up the good work
Hey!
Please try to regenerate the thumbnails. You can use either of these plugins:
https://wordpress.org/plugins/simple-image-sizes/
https://wordpress.org/plugins/regenerate-thumbnails/
Make sure that you switch to the “german” language when you regenerate them. If it doesn’t work, try to recreate the partner/logo element from scratch.
Best regards,
Ismael
Hi!
Please go to Appearance > Editor and open Functions.php file and find following line
$avia_config['imgSize']['entry_without_sidebar']= array('width'=>1210, 'height'=>423 ); // images for fullsize pages and fullsize slider
and adjust the size as needed. After saving the file, please regenerate thumbnails using this plugin – https://wordpress.org/plugins/regenerate-thumbnails/
Regards,
Yigit
Hey!
bitte gehe in die Einstellungen vom Plugin was ich dir oben empfohlen habe: Settings->Media und klicke unten auf “Regenerate Thumbnails”.
Falls es nicht klappen sollte, schick uns bitte Admin Zugang zu. Du kannst die Login Details hier als private Nachricht posten.
Gruß,
Andy
Hi Pappasdg!
That would take a lot of time and code and would have to be considered custom work. I would consider using the LayerSlider for this as it has an option for using thumbnails for the navigation.
Best regards,
Elliott
That css code works thanks:-). I can now play my videos. But there is still problem with the first slide of the slider. It`s always black. I can also play my first video in the slider now but without any picture only sound is possible to hear.
And one more question, is there any way how to add custom hight quality thumbnail images to my videos please?
Regards,
Jan
Hi,
Seems like the question didn’t go through yesterday. Listed everything point wise
1. Looking to move the caption of the thumbnail image below the image.
Scroll Down, open the link Uniform in a Box, The caption of the thumbnail image, I would like to move it below the image. By default its above it. Tried finding the CSS element associated with it but couldn’t since it hides automatically unless the mouse cursor is over it.
2. I would like to add another Logo on the right part of the header. How can I go about doing this? Any guide I could follow of Enfold?
Thanks,
Suums
Hi – no to your last question. I had clicked in an existing gallery and then Edit.
Re-creating the 700+ galleries in 300 posts with thousands of images in my libraries would take months. I’m hoping for an easier solution. It doesn’t have to be a masonry gallery for my existing posts in this new Enfold site. It just has to look good.
What we’re trying to do here is fix a problem that occurred after transferring my blog from WP.com to WP.org.
1) The photos are not easy to see if you look at the links earlier in the thread (tiny thumbnails squished and to the side).
2) The galleries are not responsive to any changes made in the content editor.
3) I understand that you’re saying I can’t use the Advance Layout Editor for existing content
4) Because I tried, it added 222 pages of masonry galleries to the blog post http://50.87.248.159/~dominjd2/2015/03/23/intuitive-sparks-aanl-painting-workshop/
5) Now if I go back into Edit Page, the original photos are gone and there’s code instead like in the screen shot shown. This is a recent post, so I could go back in and re-create a gallery. Not a big deal.
6) But we’re not addressing the main problem. None of my galleries in about 300 posts are responsive to edit changes. They don’t look acceptable (can’t see pictures – squished in tiny column to the left). This is even true in the post I added on the site after I moved it to Enfold – the 2 small photos at the bottom are in a gallery set to “Large” http://50.87.248.159/~dominjd2/2015/04/09/new-painting-ive-got-your-back/
Can we not use the regular editor in Enfold? Do we always have to select “Advanced Layout Editor” when designing blog posts? Why is my new blog post having the same issues as all the old ones? Is that a clue?
Note: I have also sent an email about this issue to the Website Transfer Team, although they keep telling me they’re not developers, so I don’t know if they’ll be able to do something.
This is the issue keeping me from making this website live. I’d really appreciate if you could go into my site and take a deeper look. You have access info in my first message from April 9. Thanks so much.
Hi Enfold Folks,
When we share a link on Facebook from our site, the image it shares is a section of our logo. I tried installing Yoast SEO and added an image in Open graph, that didn’t work either.
TheURL is http://thecorridordocumentary.com/test – See Facebook screenshot at the bottom of the page for a visual of the problem.
All other pages are password protected during the build.
I’m using the OSD sharing plug in for all the pages and the Enfold share buttons on the blog. Neither capture an image to share on Facebook. Just a section of the logo or no image.
This is super important for my clients site since they are about to launch a Kickstarter campaign. Any ideas would be greatly appreciated?
Thanks for your help in advance!
Hello,
I used portfolio grid for my product page to sort the categories. The featured images are different sizes.
In the settings of the grid I have set the thumbnail size to manually, but the thumbnails are in different aspect ration which looks very ugly.
Would you please advise how I can do?
I want to have the page like this..
http://kriesi.at/themes/enfold/portfolio/portfolio-3-column/
thanks so much!
Thanks. The ‘magazine’ size is the right one for me. However, only half of my issue is solved.
Images that are large enough are cropped and fit perfectly (that’s one half solved). But there is one image (the first slide in the same link) that is very wide but also short. It does scale up a bit, but not enough to fill even the ‘magazine’ thumbnail height. If it does scale at all, I guess it should be possible to make it scale all the way up, right?
No success with either option.
1) the CSS code only changed the 2 photos in my new blog post created here, not the 300 imported – but it made them big and I still couldn’t change them using the editor. They stayed too big no matter what size I chose.
2) I found the shortcode wand – new tool for me. I was in Edit Post. I clicked on a gallery to make it active. If I click on the edit pencil, I couldn’t see the shortcode wand. So I only clicked so there would be a grey box around all the photos that were there. I then clicked on shortcode wand and selected Media Element -> Masonry Gallery (which would more closely resemble my previous website). This is what it looked like in the editor – code instead of thumbnails and under the next paragraph, a “No Content” image.
https://www.dropbox.com/s/cl4i8ihocabjcbl/Screen%20Shot%202015-04-11%20at%207.32.19%20AM.png?dl=0
I decided to try and save to see what happened and I got a masonry gallery full of photos from the entire website, including some of your demo shots – not the photos that had been in that gallery. Did I do something wrong?
I now need to learn to revert to an older version to get back those 20 or so photos (I think I remember reading we can do that?) and how to fix my galleries. If I have to go into all 300 posts to fix over 700 galleries, I will, but it’s not working.
I provide the Private Data in my first message if you can look at it to see what will work. Thanks.
Hi!
You can change the thumbnail size or the preview image size of the ajax slideshow with this on functions.php:
add_action( 'avf_portfolio_preview_template_params', 'avf_portfolio_preview_template_params_mod', 10, 2 );
function avf_portfolio_preview_template_params_mod($params, $entry) {
if($params['method'] == 'slideshow') {
$params['preview_size'] = 'gallery';
}
return $params;
}
Change the “preview_size” value which is currently set to “gallery” (845x684px). Select among these thumbnail sizes:
$avia_config['imgSize']['widget'] = array('width'=>36, 'height'=>36); // small preview pics eg sidebar news
$avia_config['imgSize']['square'] = array('width'=>180, 'height'=>180); // small image for blogs
$avia_config['imgSize']['featured'] = array('width'=>1500, 'height'=>430 ); // images for fullsize pages and fullsize slider
$avia_config['imgSize']['featured_large'] = array('width'=>1500, 'height'=>630 ); // images for fullsize pages and fullsize slider
$avia_config['imgSize']['extra_large'] = array('width'=>1500, 'height'=>1500 , 'crop' => false); // images for fullscrren slider
$avia_config['imgSize']['portfolio'] = array('width'=>495, 'height'=>400 ); // images for portfolio entries (2,3 column)
$avia_config['imgSize']['portfolio_small'] = array('width'=>260, 'height'=>185 ); // images for portfolio 4 columns
$avia_config['imgSize']['gallery'] = array('width'=>845, 'height'=>684 ); // images for portfolio entries (2,3 column)
$avia_config['imgSize']['magazine'] = array('width'=>710, 'height'=>375 ); // images for magazines
$avia_config['imgSize']['masonry'] = array('width'=>705, 'height'=>705 , 'crop' => false); // images for fullscreen masonry
$avia_config['imgSize']['entry_with_sidebar'] = array('width'=>845, 'height'=>321); // big images for blog and page entries
$avia_config['imgSize']['entry_without_sidebar']= array('width'=>1210, 'height'=>423 ); // images for fullsize pages and fullsize slider
Best regards,
Ismael
Hi!
You can use this to change the news thumb container size:
.news-thumb {
height: 36px;
width: 50px;
}
.news-thumb img, .news-thumb img {
height: 28px;
width: 42px;
}
Use the Simple Image Sizes plugin to adjust the widget thumbnail size. Regenerate the thumbnails after.
Regards,
Ismael
Hey!
Edit the blog posts element then set Preview Image Size to the second option. Select the image or thumbnail size manually.
Cheers!
Ismael
Not sure if we’d be able to fix that but try adding this to Quick CSS or child style.css:
#bwg_container1_0 #bwg_container2_0 .bwg_mosaic_thumbnails_0{
position: static !important;
}
Best regards,
Josue
I am combing through loop-index in order to comment out the_post_thumbnail() so that the featured image doesn’t render in single.php, but only as a thumbnail on the post grid view. However in this case it’s not quite as straightforward as with a more basic theme. Can you tell me what must be removed from loop-index (for my child theme) to avoid the featured image from rendering inside the post body?
-
This topic was modified 11 years ago by
Rogier.
I’m trying to troubleshoot on my own and had a thought: I wrote one new blog post since importing WP.com. This is the one here. I wanted to see if this was a problem with only the imported posts or new ones too.
http://50.87.248.159/~dominjd2/2015/04/09/new-painting-ive-got-your-back/
So these are freshly uploaded photos and you’ll see the two at the bottom, in a gallery, are still showing up as thumbnails, even if I selected “Full Size” in the content editor.
Again, If I select the Advance Layout Editor, the gallery shows up as code, so I don’t know how to work that. If I select Default Editor again to get out, everything in the content box disappears. I need to close the browser tab to get out.
Hi !
I have a website with the enfold theme and The Events Calendar plugin.
I figure that the thumbnail for the next event are define in the file enfold/config-templatebuilder/avia-shortcodes/events_upcoming.php function shortcode_handler().
I have a simple question. I want to change the type of thumbnail “square” by “portfolio-small” in
$image = get_the_post_thumbnail($entry->ID, 'square', array( 'class' => 'av-upcoming-event-image' ));
So in my functions.php of my child-theme I have add :
add_action( 'shortcode_handler', 'homepage_agenda' );
/**
* Frontend Shortcode Handler HOMEPAGE AGENDA
*
* @param array $atts array of attributes
* @param string $content text within enclosing form of shortcode element
* @param string $shortcodename the shortcode found, when == callback name
* @return string $output returns the modified html string
*/
function homepage_agenda($atts, $content = "", $shortcodename = "", $meta = "")
{
$atts = shortcode_atts(array(
'categories' => "",
'items' => "3",
'paginate' => "no",
), $atts, $this->config['shortcode']);
$output = "";
$posts = $this->query_entries( $atts );
$entries= $posts->posts;
if (!empty($entries))
{ global $post;
$default_id = $post->ID;
$output .= "<div class='av-upcoming-events ".$meta['el_class']."'>";
foreach($entries as $entry)
{
$class = "av-upcoming-event-entry";
$image = get_the_post_thumbnail($entry->ID, 'portfolio_small', array( 'class' => 'av-upcoming-event-image' ));
$class .= empty($image) ? " av-upcoming-event-with-image" : " av-upcoming-event-without-image";
$title = get_the_title($entry->ID);
$link = get_permalink($entry->ID);
$post->ID = $entry->ID; //temp set of the post id so that tribe fetches the correct price symbol
$price = tribe_get_cost( $entry->ID, true );
$venue = tribe_get_venue( $entry->ID );
$post->ID = $default_id;
$output .= "<a href='{$link}' class='{$class}'>";
if($image) $output .= $image;
$output .= "<div class='av-upcoming-event-data'>";
$output .= "<h4 title='av-upcoming-event-title'>{$title}</h4>";
$output .= "<div class='av-upcoming-event-meta'>";
$output .= "<span class='av-upcoming-event-schedule'>".tribe_events_event_schedule_details($entry)."</span>";
if($price) $output .= "<span class='av-upcoming-event-cost'>{$price}</span>";
if( $price && $venue ) $output .= " - ";
if($venue) $output .= "<span class='av-upcoming-event-venue'>{$venue}</span>";
$output .= apply_filters('avf_upcoming_event_extra_data', "", $entry);
$output .= "</div>";
$output .= "</div>";
$output .= "</a>";
}
if($atts['paginate'] == "yes" && $avia_pagination = avia_pagination($posts->max_num_pages, 'nav'))
{
$output .= "<div class='pagination-wrap pagination-".TribeEvents::POSTTYPE."'>{$avia_pagination}</div>";
}
$output .= "</div>";
}
return $output;
}
Is that correct ? The thumbnail stay in square size (180px by 180px). If i change directly in the events_upcoming.php file it’s work. But i want to do it properly.
Thanks for your help and time
Regard
The problem is I have almost 300 posts with several galleries in each that were imported from WP.com – causing all the galleries to become squished small thumbnails on the left. Right now, they’re not showing properly AND I can’t change how they look. Yesterday, in the default editor, I tried to edit a gallery (see previous posts) to all the different sizes, and nothing changed – it didn’t matter which size I chose, the gallery stayed fixed, unchangeable.
Today, I realized that there is the Avia Advanced editor when you mentioned the Masonry gallery- when I clicked on it inside an existing post, all the photos became html text (see screen shot). When I went back to Default editor, my entire post disappeared from the editor. (see screenshot). So I closed the window. This is worse than yesterday.
https://www.dropbox.com/sh/shjennp8qdfy1q3/AADZn1lXaLgKNi0G-CQgiGAsa?dl=0
What can I do for the existing 300 posts?
Hi Elliot,
Thanks for your response.
My first question pertains to the post type icon, as it appears here on a custom post type ‘archive’ grid:
http://note.io/1IwzUMO
I’ve found some support posts on how to hide the pencil, or even swap the symbol, but I am not sure how to customize the complete appearance of icon and surrounding rectangle:
– I am not sure whether this rectangle can contain some image generated from the post in question and / or a thumbnail uploaded separately?
– It would also be great to understand which other Entypo icons are available. For example, I tried to swap the pencil with ‘star’ or ‘heart’ in functions.php, but to no avail.
My second question is about the related post icon.
http://note.io/1IwB62H
I found some code on how to customize this, but I am struggling to understand what the 50% width and height is supposed to be doing. For me it just crops the image.
.related-format-icon.related-format-visible {
background: url('/RelatedPostIcon.png') no-repeat 50% 50%;
}
All-in-all I would just like to know how to globally control exactly the appearance of these icons / images, and potentially how to create a custom icon / image per post.
Thank you,
Rogier
Hey olampkin!
Your logo image is 1338 x 702 which is very large for a logo. I recommend scaling that down a bit.
When you edit the fullwidth easy slider there is an option for changing the image sizes. You can select a specific sized thumbnail to display or just have the images display in their original dimensions with no scaling.
Cheers!
Elliott
Is there documentation on the post type icons and or post image thumbnails? Not quite sure if theme supports the latter, but in any case I am looking for documentation on whatever imagery may be associated with posts in the masonry grid view and also related posts. Thanks.
Hi!
Can you please post a screenshot and show how you would like to display your gallery? Currently your thumbnails are set to 80x80px. If you can provide more information, we will gladly try to help you
Cheers!
Yigit
Hi!
1- Once i refresh the page after resizing the window, images are centered. Have you checked your website on an actual mobile device? It should work fine.
2 & 3 – I added following code to Style.css of your child theme
div#bwg_mosaic_thumbnails_0 a:hover {
z-index: 99999!important;
}
.bwp_gallery .image-overlay {
display: none!important;
}
4- Please go to Enfold/js/avia.js and around line 895 find following line
exclude : '.noLightbox, .noLightbox a, .fakeLightbox, .lightbox-added',
change it to
exclude : '.noLightbox, .noLightbox a, .fakeLightbox, .lightbox-added, .bwp_gallery a, #bwg_mosaic_thumbnails_0 a',
Regards,
Yigit
Hey!
I viewed your link but the images look the same to me. We are not doing anything special when resizing the images, we are just using the pre built WordPress functions, https://codex.wordpress.org/Function_Reference/set_post_thumbnail_size, so this should be the same no matter what theme your using.
If there is indeed a problem you will want to contact WordPress support or issue a bug report with them.
Best regards,
Elliott
-
This reply was modified 11 years ago by
Elliott.
Hi WolfvanHaeren!
The bigger your images the sharper they will look. Many of our shortcodes have a “image size” option which you can set to a large thumbnail or even “No Scaling” to display the image in it’s original dimensions. This will increase the download time of your site though as users will have to download large images.
Cheers!
Elliott