-
AuthorPosts
-
June 20, 2014 at 6:12 pm #281704
Hey,
In the past, I recall creating a media element in ALB, then switching back to the default editor to grab the raw code for that media element, allowing me to paste it straight into blocks of html or even widgets, such as below:
[av_gallery ids='5530,5531,5532,5533,5538,5534,5537,5536,5535' style='thumbnails' preview_size='portfolio' crop_big_preview_thumbnail='avia-gallery-big-crop-thumb' thumb_size='thumbnail' columns='3' imagelink='lightbox' lazyload='deactivate_avia_lazyload']
However, when I try to flip back to the default editor now I cannot see any code – I just have a blank editor. Is it still possible to grab the code for media elements, or they visible only in ALB? Even if there’s a way to make a gallery and grab the image ID’s, I can obviously paste the new image ID’s into the code above?
Thanks, Graeme
June 20, 2014 at 6:40 pm #281723Hi Iano999!
No, the two don’t allow for switching between them. You’ll need to enable the debug field for the ALB to view what shortcodes are being used.
See: http://kriesi.at/documentation/enfold/enable-advanced-layout-builder-debug/
Regards,
DevinJune 23, 2014 at 10:58 am #282352This reply has been marked as private.June 23, 2014 at 7:07 pm #282624Hi!
Your child theme doesn’t have a functions.php file which is where that function should go. For example, https://github.com/DevinVinson/enfold-child-starter/blob/master/functions.php
Just like I have those functions there, you would upload a functions.php file to your child theme folder and then add the function to that file. Just make sure, like mine there on github, the file has an opening php tag (
<?php
) before the code.Best regards,
DevinJune 24, 2014 at 10:56 am #282926This reply has been marked as private.June 24, 2014 at 4:02 pm #283098Try uploading the functions file with nothing but the opening php tag and then see. Make sure to remove any whitespace at the end of the file in case your server has an issue with it as well.
If all is working okay with just an empty file you can once again try adding in the function.
Edit: If you previously added in that function to the parent theme make sure to remove it. That definitely would cause an error.
- This reply was modified 10 years, 4 months ago by Devin.
June 24, 2014 at 4:19 pm #283113Hey Devin,
Okay, when I upload a functions.php file with nothing but the opening php tag I’m still getting whitescreened – is there a typical reason for this?
Thanks, Graeme
June 24, 2014 at 6:45 pm #283184Hey!
Do you upload the functions.php file into the child theme folder (wp-content/themes/enfold-child/)?
Cheers!
PeterJune 25, 2014 at 9:57 am #283456Hey Peter,
Yeah, I’m saving it into my child theme folder alongside a style.css file. I always use child themes for a build, but I’ve never had an issue with using a secondary functions file before?
Thanks again, Graeme
June 25, 2014 at 10:19 am #283471Hey Graeme!
Maybe the debug code is still in the parent theme functions.php, if so, remove it.
Also, do you have access to your PHP log?
Regards,
JosueJune 25, 2014 at 1:19 pm #283576Hi Josue,
I don’t have access to the PHP log, as far as I know. The debug code Devin recommended is definitely not in the parent functions.php file, so I’m pretty stuck as to why it would be whitescreening the site.
Graeme
June 26, 2014 at 12:35 am #283824Very strange!
Try downloading and then using the child theme here: http://kriesi.at/documentation/enfold/using-a-child-theme/
Or clone my starter child theme and use it. Either way it’ll appear to reset all the theme options since you are technically switching themes but just to see if the functions file will work there.
-
AuthorPosts
- You must be logged in to reply to this topic.