-
AuthorPosts
-
June 3, 2019 at 12:01 pm #1106667
Longtime user, I always start my projects with Enfold. Rebuilding a site, having a couple issues.
Followed your recipe(s) for custom social icons, but they’re mostly appearing blank (in header and footer).
Here’s my code from functions.php:
<?php // Register new icon as a theme icon function avia_add_custom_icon($icons) { $icons['icon_mail'] = array( 'font' =>'fontello', 'icon' => 'ue800'); $icons['icon_twitter'] = array( 'font' =>'fontello', 'icon' => 'ue801'); $icons['icon_linkedin'] = array( 'font' =>'fontello', 'icon' => 'ue802'); $icons['icon_instagram'] = array( 'font' =>'fontello', 'icon' => 'ue803'); $icons['icon_facebook_official'] = array( 'font' =>'fontello', 'icon' => 'ue804'); $icons['icon_whatsapp'] = array( 'font' =>'fontello', 'icon' => 'ue805'); return $icons; } add_filter('avf_default_icons','avia_add_custom_icon', 10, 1); // Add new icon as an option for social icons function avia_add_custom_social_icon($icons) { $icons['My Email'] = 'icon_mail'; $icons['My Twitter'] = 'icon_twitter'; $icons['My LinkedIn'] = 'icon_linkedin'; $icons['My Instagram'] = 'icon_instagram'; $icons['My Facebook'] = 'icon_facebook_official'; $icons['My Whatsapp'] = 'icon_whatsapp'; return $icons; } add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
…and my settings in Enfold:
…and how it appears on my site:
The other problem is with my Blog page at http://dev.burtlo.info/blog/. When I try to add content to my Blog page, which is an actual Page, the content doesn’t appear… I only see a listing of my blog entries. Also odd, when I’m on /blog, and click the “Edit Post” link in the toolbar on top, it edits the first post listed, not my blog page. Lastly, I’m using the Advanced Editor on my blog page, but none of the configurations I make to the Blog block are honored. I must be doing something fundamentally wrong…?
Also, my logo has some whitespace that overlaps the border lines above and below. It’s easiest to see when a page has scrolled down, but it’s present always. What’s up with that? Here’s an image:
Lastly, there was some weirdness when trying to edit my homepage, where the Advanced Editor kept wiping out the content. It’s a simple page, and I don’t have many plugins. I turned off caching, tried various things, but I ended up reverting to the Classic Editor. You can see the weirdness if you browse the revisions on the page. I didn’t find any mention of that while googling, but can you think of what going on?
I appreciate your help! Thank you.
–Burt
June 3, 2019 at 12:35 pm #1106681Hey Burt,
Thanks for contacting us!
1- Charcodes were not matching so i edited your code in functions.php file a bit. Now all icons show up fine.
2- I went to Enfold theme options > Blog Layout > Blog Layout and chose to use Advanced Layout Builder.
3- Does it happen on a certain browser? I checked your website and tried scrolling down but logo does not overlap borders on my end. Attached screenshots in private content field below.
4- I tried editing and adding content to your homepage but i did not notice anything unordinary. That issue usually occurs when you have broken HTML on your page. For example first line below would break the layout
<strong>Here is my strong text with broken HTML!<strong> <strong>Here is my strong text</strong>
Please make sure that is not the case in case issue occurs again.
Best regards,
YigitJune 3, 2019 at 5:05 pm #1106754Thanks for the prompt reply, Yigit (and for your years of support!).
1. How did you determine the charcodes for those icons?
2. Ahhhhh… been a mystery to me in the past, finally got the answer!
3. I’m on Chrome, but just tried different browsers and Incognito, and wasn’t able to reproduce my problem… local cache, I presume.
4. I can understand broken code breaking the rendering, but let me describe it more accurately…
– I would click “Edit” from the Pages listing, and would see my content previewed in Advanced Editor.
– When I clicked to edit the content, the content would be completely blank.
– I tried saving, with and without clicking to edit the content (step above), but in both cases, the saved Page would have zero content.
– Problem’s gone away, but was very odd. Since I can’t reproduce now, I’ll let this go.Thanks for all your help, aside from my question in #1, this is closed!
June 3, 2019 at 5:08 pm #1106756Oh, one more question… can I change the sort of the blog entries in the Blog block? Just curious.
June 3, 2019 at 7:16 pm #1106798Hi,
You are welcome Burt :)
1- I simply added Icon element to your page and hovered on your icons :)
2- Please refer to this post https://kriesi.at/documentation/enfold/blog-post/#change-the-sort-order-of-blog-posts-elements-by-last-updated-post-name-etcBest regards,
YigitJune 3, 2019 at 8:22 pm #1106810Awesome, thanks again!
June 3, 2019 at 8:54 pm #1106818Hi,
I’m glad this was resolved. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon -
AuthorPosts
- The topic ‘A few issues’ is closed to new replies.