-
Search Results
-
Topic: Fatal Error
Hi there,
I can’t edit my homepage anymore.
Not sure to understand what WP is trying to tell me…
Fatal error: Out of memory (allocated 52166656) (tried to allocate 262144 bytes) in /homepages/18/d513767076/htdocs/www/wp-includes/post-template.php on line 1758
Thanks for your help :)
Topic: Error Log
Hi,
I’m using Enfold on multisite and am getting the following error.
Apache/PHP Error logs
[Thu Mar 05 09:47:39 2015] [error] [client 66.249.67.109] Directory index forbidden by Options directive: /nas/wp/www/sites/innerpath/wp-content/themes/enfold/framework/I wanted to outline the procedure for creating a custom post type and using it with Enfold theme. So here it goes.
Here’s how to create a custom post type in Enfold and use it for storing, categorizing and displaying galleries (photo galleries in my case). I wanted to use the portfolio type solely for my projects and needed to have another post type for galleries. And I wanted to keep the taxonomies separate as well.
So below I have described the process for creating a CPT using a plugin and modifying the functions.php file to include some code to use the CPT. All this is based on the support I received from the Enfold team so my contribution is simply to bring it all together in one place. With many thanks to the support team, I hope you find it useful.
Install a plugin that lets you create custom post types (CPT). I used Types. Once installed, go to it and click Add Custom Post Type button.
You will be taken to Add Custom Post Type screen. This is where you define your CPT. Here’s what I did.
You could name these as you like but keep the names handy as you’ll use them later in the functions.php file.
Once you have defined the CPT, you can scroll down to set additional settings. Make sure the profile is public and tags taxonomy is selected.
Save the custom post.
You’ll back at the main page of the Types plugin.
Next click Add Custom Taxonomy button to create categories so you can categorize your work.
Type you categories names at the Add New Taxonomy screen. See this example:
Once you have defined your taxonomies, you can save them and get back out to the main screen.
You should have something like this:
Let’s now make changes to the functions.php file so we can use this CPT. I’ve used a child theme so the changes are made there.
Add this code to the file:
/* to support displaying custom post types */add_theme_support(‘add_avia_builder_post_type_option’);
add_theme_support(‘avia_template_builder_custom_post_type_grid’);/* to display advanced portfolio setting */
add_filter(‘avf_builder_boxes’,’enable_boxes_on_posts’);
function enable_boxes_on_posts($boxes) {
$boxes[] = array( ‘title’ =>__(‘Avia Layout Builder’,’avia_framework’ ), ‘id’=>’avia_builder’, ‘page’=>array(‘portfolio’, ‘page’, ‘post’,’gallery-items’), ‘context’=>’normal’, ‘expandable’=>true );
$boxes[] = array( ‘title’ =>__(‘Layout’,’avia_framework’ ), ‘id’=>’layout’, ‘page’=>array(‘portfolio’, ‘page’, ‘post’, ‘gallery-items’), ‘context’=>’side’, ‘priority’=>’low’);
$boxes[] = array( ‘title’ =>__(‘Additional Portfolio Settings’,’avia_framework’ ), ‘id’=>’preview’, ‘page’=>array(‘portfolio’, ‘gallery-items’), ‘context’=>’normal’, ‘priority’=>’high’ );return $boxes;
}`Notice the “gallery-items”? They are the same we created earlier. The code also enables the Advanced Layout Editor. Save the file. That’s it.
Now once all this is done, just create a gallery item from the Gallery Items on the left side.
In order to display the contents in this CPT and the categories, choose your desired portfolio or masonry in a page and you’ll be presented the with some additional choices. See Below:
Now you can choose to display the post type so you can choose the newly created CPT (Gallery Items) and Gallery Categories.
You have now duplicated the portfolio post type and all its features.
Keep in mind that if you have existing content that used categories, you may have to change some settings, especially the categories and post types in order for them to display properly.
Hope you have fun and find this useful.
Regards,
I’ve just upgraded to WordPress 4.1 and Enfold 3.0.8 and I noticed that I cannot add anything except pages on the Menu adminstration screen in the admin. I am getting an error in the console:
Uncaught TypeError: Cannot read property 'id' of undefinedand the line it references is in
load-scripts.phpand related to mediaelement.js. I have tried deactivating all plugins and haven’t gotten this to change, however changing the theme (with or without all plugins active) fixes it, so I believe it is something to do with the theme and/or compatibility with latest version of WP. Do you have a fix for this?Screenshots:
https://www.evernote.com/shard/s82/sh/ce04fe70-3f4d-4f45-87d3-e793c44dc6a5/4e2211dbc118770467fc09019042176dTopic: post slider hover icon
Hi Team,
I checked several posts, documentation and tried really long to find out, how I can change the post slider hover icon from the images.
As I saw the post slider hover icon is “ue832”.
I want to change as example to a play icon like: “ue897” .So I searched for the “ue832” code and can only find it in the functions.php file, on line 231:
‘ov_external’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue832’),
Because this are the “//image hover overlays” I thought it would be the best way to change it here.
I changed it, deleted the page cache, but nothing happened.I also tried to change the “/E832” code in the base.css file as described in some topics, but no chance to change the icon.
Thank you for your help.
I’m getting the following error message on a new install. I’m on Godaddy server. Please advise.
Thanks
Jodi=======================================================
Warning: session_start() [function.session-start]: open(/home/content/90/10994390/tmp/sess_771kmj3n5ibr73fgovio84qu06, O_RDWR) failed: No such file or directory (2) in /home/content/90/10994390/html/2015/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/masonry_entries.php on line 32Warning: session_start() [function.session-start]: Cannot send session cookie – headers already sent by (output started at /home/content/90/10994390/html/2015/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/masonry_entries.php:32) in /home/content/90/10994390/html/2015/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/masonry_entries.php on line 32
Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /home/content/90/10994390/html/2015/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/masonry_entries.php:32) in /home/content/90/10994390/html/2015/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/masonry_entries.php on line 32
=======================================================
Hola!
Me gustaría poner un div sobre la imagen del item de portfolio cuando este pertenece a una determinada categoría. Lo que quiero hacer es algo así:
https://www.dropbox.com/s/f09wh0j4sh4fylr/Captura%20de%20pantalla%202015-03-01%2017.04.31.png?dl=0Si el post pertenece a la categoría “Reservado” -> coloca este div
if (is_category( 'reservado' )) { echo '<div class="Reservado"><img src="..." alt="Reservado" /></div>'; }Luego, por CSS yo lo situaría sobre la imagen.
Estoy dentro de portfolio.php en mi tema hijo, pero no encuentro el lugar donde ponerlo…
Muchas gracias!
Hey,
in functions.php:
function pastevents($atts) { $atts = (array) $atts; $atts['format'] = '<li>#_EVENTDATES: #_EVENTLINK</li>'; return '<ul class="myeventlist">' . EM_Events::output( $atts ) . '</ul>'; } add_shortcode ( 'my_events_list', 'pastevents' );what results in: this page
The problem: the last 2 concerts have a linebreak in the title and are displayed as code. If you click on the link, you see that the title has a linebreak and is displayed in 2 lines.
best regards




