I have uploaded the enfold.zip file to my server but there is a php error message that appears after the theme has uploaded and the live preview is not right. The error messages are:
Warning: An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the support forums. (WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.) in /home/cornerst/public_html/test2/wp-includes/update.php on line 119
Warning: An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the support forums. (WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.) in /home/cornerst/public_html/test2/wp-includes/update.php on line 457
Hey!
Try opening up the /enfold/header.php file and change line 37 from this.
if( strpos($responsive, 'responsive') !== false ) echo '<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">';
To this.
if( strpos($responsive, 'responsive') !== false ) echo '<meta name="viewport" content="width=device-width, initial-scale=1">';
Cheers!
Elliott
Hi Josue!
A few months ago you solved a problem concerning some portfolio pages on https://kriesi.at/support/topic/icon-fonts-dont-appear/
Now I have to built a festival archive (1967 – 2014) with 3.600 portfolio items. In order to make it searchable and filterable, I’m using the Search & Filter Plugin. The plugin displays the search-results
(1) as an archive-page or
(2) using a shortcode in combination with a customized template.
(1) I’m using ENFOLD ‘taxonomy-portfolio_entries.php’ and the results are well displayed on a new page: http://hofer-filmtage.com/testarchiv-a/
(2) I’m using ENFOLD ‘taxonomy-portfolio_entries.php’ without get_header(); and get_footer(); as customized template. The results are displayed on the same page in a new container, but doesn’t work well. It seems like it’s building a grid, but cannot load the portfolio entries: http://hofer-filmtage.com/testarchiv-b/
It would be very helpful, if you would have a look on that.
Do you have an idea?
Best regards
Bernd
This reply has been marked as private.
This reply has been marked as private.
Hi TjaardHeikens!
Thank you for using Enfold.
Use the wp_head function in the functions.php file:
add_action('wp_head', 'ava_add_your_stuff');
function ava_add_your_stuff() {
?>
<link rel="apple-touch-icon" sizes="57×57" href="apple-touch-icon-iphone.png" />
<link rel="apple-touch-icon" sizes="72×72" href="apple-touch-icon-ipad.png" />
<link rel="apple-touch-icon" sizes="114×114" href="apple-touch-icon-iphone-retina-display.png" />
<link rel="apple-touch-icon" sizes="144×144" href="apple-touch-icon-ipad-retina-display.png" />
<?php
}
Regards,
Ismael
Hi!
Add this to the functions.php file:
add_filter('avf_title_args', 'avf_title_args_mod', 10, 2); // remove default title
function avf_title_args_mod($args,$id)
{
$av_sidebar_menu = avia_sidebar_menu(false);
$args['html'] = "<div class='{class} title_container'><div class='container'><{heading} class='main-title entry-title'>{title}</{heading}>{additions}{$av_sidebar_menu}</div></div>";
return $args;
}
After that, add this to the Quick CSS field:
.title_container .widget_nav_menu {
position: relative;
}
.title_container ul:first-child>.current-menu-item>a, .title_container ul:first-child>.current_page_item>a {
padding: 3px 7px 7px 0;
}
#top .title_container .widget_nav_menu li {
float: left;
clear: none;
margin: 0 5px;
}
Style the menu as you want.
Cheers!
Ismael
Hi there,
thanks for your reply but it did not work well.
When I try edit a page I got this message:
Parse error: syntax error, unexpected ‘<‘ in /home/d8737/airlinestaffrates.com/wp-content/themes/enfold/functions.php on line 518
facebook instruction:
Include the JavaScript SDK on your page once, ideally right after the opening <body> tag.
This reply has been marked as private.
Hey!
Thank you for using Enfold.
Add this to the functions.php file:
add_action('wp_footer', 'ava_custom_script_mod');
function ava_custom_script_mod(){
?>
<script>
(function($){
$(window).scroll(function(){
var scrolled = $(this).scrollTop(),
adminbar = parseInt($('#wpadminbar').height()) || 0;
if(scrolled >= 200) {
$('#header_main_alternate').addClass('custom-header').css('margin-top', adminbar);
} else {
$('#header_main_alternate').removeClass('custom-header').css('margin-top', 0);
}
});
})(jQuery);
</script>
<?php
}
then add this in the Quick CSS field:
.custom-header {
position: fixed;
top: 0;
width: 100%;
border-bottom: 1px solid #ff9900;
-webkit-box-shadow: rgba(0, 0, 0, 0.3) 0 1px 3px;
-moz-box-shadow: rgba(0,0,0,0.3) 0 1px 3px;
box-shadow: rgba(0, 0, 0, 0.3) 0 1px 3px;
z-index: 5000;
-webkit-animation: custom-header-show 1s 1 cubic-bezier(0.175, 0.885, 0.320, 1.075); /* Safari 4+ */
animation: custom-header-show 1s 1 cubic-bezier(0.175, 0.885, 0.320, 1.075); /* IE 10+ */
}
@-webkit-keyframes custom-header-show {
0% { opacity: 0; }
100% { opacity: 1; }
}
@keyframes custom-header-show {
0% { opacity: 0; }
100% { opacity: 1; }
}
Best regards,
Ismael
Hey!
Please open Footer.php file and find following line
</div>
<!-- ####### END SOCKET CONTAINER ####### -->
</footer>
and right above it, you can add your data using HTML as following
<div class="custom-socket"><strong>Company Name</strong> Street Address, City, County, Post Code, <a href="tel:0401786376">Telephone</a></div>
Cheers!
Yigit
Hey!
You can try this:
add_action('ava_after_main_container', 'add_banner_before_breadcrumb');
function add_banner_before_breadcrumb() {
if ( is_product() )
{
echo '<div id="av_product_description" class="avia-section main_color avia-section-default avia-no-shadow avia-full-stretch av-parallax-section avia-bg-style-parallax av-minimum-height av-minimum-height-75 container_wrap fullsize" style="color:#ffffff;" data-section-bg-repeat="stretch">
<div class="av-parallax avia-full-stretch"></div>
</div>';
}
}
add_action('wp_footer', 'ava_custom_script_parallax');
function ava_custom_script_parallax(){
?>
<script>
(function($){
$('#av_product_description .av-parallax').css('background-image', 'url(' + 'http://sst.seite-freigeben.de/wp-content/uploads/stripe_Poducts11.jpg' + ')');
$('#av_product_description').css('height', '500px');
})(jQuery);
</script>
<?php
}
Set the height of the #av_product_description manually.
Regards,
Ismael
Hi,
My website gave this error when I tried to update it. Please let me know what should be done. The site seems to be working, but now I am nervous about udating the theme until I receive word from you.:
Updating Theme Enfold (1/1)
Warning: preg_match() expects parameter 2 to be string, array given in /home/content/82/12541582/html/wp-admin/includes/class-wp-upgrader.php on line 226
Warning: file_exists() expects parameter 1 to be string, array given in /home/content/82/12541582/html/wp-admin/includes/class-wp-upgrader.php on line 226
Warning: strip_tags() expects parameter 1 to be string, array given in /home/content/82/12541582/html/wp-admin/includes/class-wp-upgrader-skins.php on line 233
Downloading update from …
Warning: basename() expects parameter 1 to be string, array given in /home/content/82/12541582/html/wp-admin/includes/file.php on line 147
Warning: preg_split() expects parameter 2 to be string, array given in /home/content/82/12541582/html/wp-includes/kses.php on line 1123
Warning: strtolower() expects parameter 1 to be string, array given in /home/content/82/12541582/html/wp-includes/http.php on line 450
Warning: strtolower() expects parameter 1 to be string, array given in /home/content/82/12541582/html/wp-includes/http.php on line 450
An error occurred while updating Enfold: Download failed. A valid URL was not provided.
This reply has been marked as private.
This reply has been marked as private.
This reply has been marked as private.
Hi!
Please remove it then use this filter to add new google fonts: http://kriesi.at/documentation/enfold/register-additional-google-fonts-for-theme-options/
Edit functions.php, look for this code:
if(isset($avia_config['use_child_theme_functions_only'])) return;
Below, add this:
add_filter( 'avf_google_heading_font', 'avia_add_heading_font');
function avia_add_heading_font($fonts)
{
$fonts['Pathway Gothic One'] = 'Pathway Gothic One';
$fonts['Roboto Condensed'] = 'Roboto Condensed:400,700';
return $fonts;
}
add_filter( 'avf_google_content_font', 'avia_add_content_font');
function avia_add_content_font($fonts)
{
$fonts['Pathway Gothic One'] = 'Pathway Gothic One';
$fonts['Roboto Condensed'] = 'Roboto Condensed:400,700';
return $fonts;
}
You can now select the fonts on Enfold > General Styling > Fonts panel.
Regards,
Ismael
Hey!
I wanted to check your website but i get “Parse error: syntax error, unexpected ‘<‘ in /homepages/39/d247501099/htdocs/textor/page/wp-content/themes/enfold/functions.php on line 3” error. Please go to wp-content/themes/enfold and undo the changes you have made on functions.php file via FTP
Best regards,
Yigit
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 ?
Hey 567silver!
What happens when you edit line 9 in the single.php file?
$title = __('Blog - Latest News', 'avia_framework'); //default blog title
Regards,
Elliott
Hi Elliot,
For my custom template, I just duplicated page.php and renamed it. I have removed the callout to the external Google Map API. It still didn’t seem to work. Then I added onload=”initialize()” to the body tag and I get this error:
Uncaught ReferenceError: google is not defined
It stems from this code:
var mapOptions = {
zoom: 11,
center: new google.maps.LatLng(33.683415, -117.1542139),
mapTypeId: google.maps.MapTypeId.ROADMAP
};
The Google Maps API that ships with Enfold doesn’t seem to be getting loaded for this page.
Should I use a different page template to use as a base for my custom template? Maybe index.php?
Again, any help is much appreciated.
This reply has been marked as private.
well i usually have in my child-theme functions.php this:
add_theme_support('avia_template_builder_custom_css');
to have the possibility to set a css class to alb elements.
then you can put the columns into a color section with class: “onefifth_special” (this is because otherwise you will change every fifth column in this manner)
then i put in quick css these lines:
@media only screen and (min-width: 768px) and (max-width: 989px) {
.responsive .onefifth_special .av_one_fifth
{
margin-left: 2%;
width: 48%;
padding-bottom: 30px
}
.responsive .onefifth_special .av_one_fifth.first.el_before_av_one_fifth,
.responsive .onefifth_special .av_one_fifth.first + .av_one_fifth + .av_one_fifth,
.responsive .onefifth_special .avia-builder-el-last
{
clear: both;
margin-left: 0;
}
}
and you can see the result on : http://webers-testseite.de/enf02/beispiel-seite/
Hi!
Yes, that is possible. You can add it directly to the includes > helper-main-menu.php fileor add this to the functions.php file:
add_action('ava_main_header', 'ava_main_header_mod');
function ava_main_header_mod() {
$output = '<div class="header-message">';
$output .= '<span class="blue bold">Vrijdag 17 april Open Dag!</span> <br>';
$output .= '<a href="http://www.intercollege.nl/contact/afspraak-maken/" class="orange bold">Meld je nu aan!</a>';
$output .= '</div>';
echo $output;
}
Regards,
Ismael
This reply has been marked as private.
I tried to add a shortcode to the Enfold Child found on this link http://kriesi.at/documentation/enfold/add-new-or-replace-advanced-layout-builder-elements-from-child-theme/
I have last year I previously added it to the main Enfold theme but that was before I knew better. Is there something I am missing that is not in the above link?
Added this to the Child function.php:
add_filter(‘avia_load_shortcodes’, ‘avia_include_shortcode_template’, 15, 1);
function avia_include_shortcode_template($paths)
{
$template_url = get_stylesheet_directory();
array_unshift($paths, $template_url.’/shortcodes/’);
return $paths;
}
Created a folder called shortcodes
Added a shortcodes.css with this:
/* ======================================================================================================================================================
Feature Badge
====================================================================================================================================================== */
.avia-feature-badge{width: 100%; background-color:#ffffff !important; background-position:center; overflow:hidden; clear:both;}
.avia-feature-badge:hover {background-color:#3399ff !important; background-opacity: 0.7; }
.avia-feature-badge h3{color:#333333 !important;}
.avia-feature-badge:hover h3{color:#ffffff !important;}
.feature-badge-title{color: #333333; width: 100%; display:inline-block; background: transparent; padding: 10px 14px; margin-top:0px; margin-bottom: 0px;}
.avia-feature-badge:hover .feature-badge-title{color: #ffffff !important;}
.feature-img-container{position: relative; text-align: center; width: 100%; height:80%; background-size:cover; background-position: center !important;}
.avia-feature-badge:hover .feature-img-container{opacity: 0.7;}
.avia-feature-badge{
border: 1px solid rgba(0, 0, 0, 0.1);
font-size:20px;
opacity: 1;
top:0; left:0; right:0; bottom:0;
text-align: left;
height: 200px;
margin-top:0px;
margin-bottom:10px;
clear:both;
}
Hey waveseven!
Thank you for coming back.
You need to modify a core file:
enfold\config-templatebuilder\avia-shortcodes\portfolio.php line 720:
Look for:
$output .= "<h2 class='portfolio-preview-title entry-title' $markup><a href='{$link}'>".$entry->post_title."</a></h2>";
and replace with:
$output .= "<h2 class='portfolio-preview-title entry-title' $markup>".$entry->post_title."</h2>";
Remember to do this after every update.
Regards,
Günter
Hi Becca!
Thank you for using our theme.
Out of the box – no.
Depending on where you want to change it you will have to modify the following file:
enfold\includes\loop-index.php
Look for class=’post-meta-infos’ at line 74ff.
Regards,
Günter
Hi Yigit,
in the last version enfold 3.1.3 in the file enfold/config-templatebuilder/avia-shortcodes/productslider.php on line 278 is still the textdomain woocommerce.
But you need in enfold the textdomain avia-framework.
You can cloose this topic.
Regards
Biggy