-
AuthorPosts
-
May 1, 2014 at 12:45 pm #258818
Hi there,
first of all, I really love Enfold. It’s not only a great theme, it’s like an entire new WordPress. Keep up the good work!
I’d like to customize the look of the single post page. Besides choosing the position of the sidebar (left/right) I can’t find other options. I’d like to add a custom widget area on top of every blog post or add a slideshow (or even a Layerslider) on top of every post.
How can this be done?
Thanks!!
May 1, 2014 at 10:34 pm #259087Hey henningtillmann!
You would need to customize the single.php file and its corresponding css/meta boxes. The theme doesn’t currently support any other form of customization for the single post layouts.
Cheers!
DevinMay 2, 2014 at 12:39 am #259123Ok, that means I’m not blind and there is no other option besides editing the php files.
Thanks
HenningMay 2, 2014 at 2:26 am #259160Yes, aside from the options in the Blog Layout tab in the theme options that would be it:
May 3, 2014 at 6:51 pm #259783I’ve tried to add a LayerSlider to single.php as mentioned here:
https://kriesi.at/support/topic/layerslider-in-php-file/#post-121792But it does not work. What can I do?
May 4, 2014 at 3:10 am #259839Hey!
Thank you for the update.
Do you mind if we take a look at the page with the layerslider shortcode modification? Please place the code of single.php file that you modified on pastebin.com. We would like to check it. Instead of using the do_shortcode function, use the layerslider function. It looks something like this:
<?php layerslider(1) ?>
This is the same as:
echo do_shortcode('[layerslider id="1"]');
Cheers!
IsmaelMay 4, 2014 at 10:56 am #259912Hey Ismael,
I tried both:
<?php layerslider(1) ?>
That results in:
Fatal error: Call to undefined function layerslider() in /www/htdocs/v160319/blog/wp-content/themes/enfold/single.php on line 24
When I use
echo do_shortcode('[layerslider id="1"]');
The output is
[layerslider id="3"]
I haven’t really modified any of the php files, I’ve just added one line of code:
http://pastebin.com/PFhg7taj
(Line 25)Thanks in advance
HenningMay 5, 2014 at 10:10 pm #260475I’m not really sure why but I can’t get any implementation of the LayerSlider shortcode or functions to output. Its worth noting that their php example is invalid since its missing the closing ; .
Up until version 2.7 the shortcodes were disabled with the plugin but they are now enabled for regular usage. There really shouldn’t be any reason why they aren’t getting output by themselves.
I don’t have a stand alone version to test with unfortunately so I can’t say if its a LayerSlider issue or what.
May 5, 2014 at 11:14 pm #260487Devin, would be great if you keep an eye on this and maybe you’re able to fix it anytime soon? Because I really need to put a LayerSlider on the single post page (I’d like to even customize it a bit more through JavaScript and interact with the post content).
Thanks!!
May 7, 2014 at 6:19 am #261145Hi!
Do you have the latest version of Enfold?
Regards,
JosueMay 7, 2014 at 9:16 am #261201May 8, 2014 at 6:58 pm #261932For this kind of usage it looks like you’ll need to purchase the plugin by itself and then disable the included version. The interaction between the theme and it while included is causing a conflict somewhere that we’ve been unable to track down.
You can disable it with:
add_theme_support('deactivate_layerslider');
Right after the
global $avia_config;
in a parent theme or in the child themes functions.php at the top.October 27, 2015 at 2:29 pm #525492Does this work or the woocommerce as well?
add_theme_support(‘deactivate_woocomerce’);
October 27, 2015 at 7:42 pm #525764Hey!
No, if you want to disable WC simply go to Plugins and deactivate it there.
Regards,
JosueFebruary 28, 2016 at 6:27 am #590349Hi,
Don’t mean dig up old threads but the first search result on Google brought me here.
Just a quick question – What’s the aspect ratio or dimensions of the featured image that appears at the top of a single blog post?
Or at the very least, what dimensions would you recommend?
February 28, 2016 at 11:24 am #590384Hi!
Depends if you’re using a Sidebar or not, here are the ideal sizes as set in functions.php:
$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
Cheers!
Josue -
AuthorPosts
- You must be logged in to reply to this topic.