Forum Replies Created
-
AuthorPosts
-
July 10, 2015 at 2:21 am in reply to: Replacing call to gravatar for authorbox with locally hosted image? #158998lvvvvvlParticipant
Thanks Tom, that worked beautifully and just what I wanted!
July 9, 2015 at 12:02 am in reply to: Replacing call to gravatar for authorbox with locally hosted image? #158870lvvvvvlParticipantI've tried writing up a code that would simply replace the functionality of get_avatar but it's creating some sort of error in my admin panel in which it loads the left side menu but all the content of the admin pages simply displays the blank background.
This is the code which I'm using and pasting the author avatar image url in their 'yim' profile section:
//* Local Author Gravatars *// add_filter('get_avatar', 'get_no_gravatar', 1, 2); function get_no_gravatar( $id_or_email, $size = '180', $default = '', $alt = false ) { // put your new function in here $avatar = '<img alt="'.get_the_author_meta('display_name').' Avatar" src="'.get_the_author_meta('yim').'" class="avatar avatar-{$size} photo avatar-default" height="{$size}" width="{$size}" />'; return apply_filters('get_avatar', $avatar, $id_or_email, $size, $default, $alt); };
Any ideas what I'm doing wrong?
July 8, 2015 at 7:02 pm in reply to: Replacing call to gravatar for authorbox with locally hosted image? #158856lvvvvvlParticipantThanks Tom, I stumbled upon that in my searches but I thought perhaps there might be a more elegant solution to increase site performance than adding another plugin.
I imagine that's the advantage of Genesis, its customization. I found this tutorial on how to add social buttons which requires unhooking the author box and creating your own custom version (https://wpbeaches.com/author-box-genesis/) but I don't have the knowledge to figure out how to replace the gravatar call with a locally hosted image that could be linked from one of the author fields.
lvvvvvlParticipantAnyone? I'm sure I'm overlooking something simple but after much trying I just can't see what it is with my limited hooks knowledge.
lvvvvvlParticipantHey mate,
Thank you for the suggestion. I successfully enqueued the script on every page but unfortunately I'm still having the same problem. I can see in the source the disqus.js is loaded, and in the genesis_comments the <div identifier is replacing the comments but the disqus embed just won't load up and displays blank.
I've even tried replacing the getElement to document.getElementById('disqus_thread') so I could use the default <div id="disqus_thread" data-disqus-url="<?php the_permalink(); ?>"></div> with no success.
Maybe it's something wrong with the javascript itself.
lvvvvvlParticipantHello Ben,
Thank you for your response. I wouldn't mind it if the content I have rotating was advertising but it's not, it's actually featured articles that I want to make more prominent without having to resort to an extra load time increasing plugin like a slideshow or Featured Widget while also having the flexibility of editing the image and text overlay on that image to make it more attractive to click.
lvvvvvlParticipantWow, a whole tutorial dedicated to the question; Thank you Sridhar!
Is it possible to make it universal? so that it applies not only to big screens (I have a Wide Screen tv as my monitor) but also to mobile phones? (I think mobiles are especially prone to clicking the facebook like button I have in the top right widget).
lvvvvvlParticipantI figured out that by making the header widget less wide and by forcing it to float auto normally and to the left when on a mobile device (using a media query) it fixed somewhat the problem.
My only problem now is that by reducing the header widget width, I've created a gap between the header image and the widget, and the gap displays the background color of the website instead if just white. How do I make the whole site.header area background white by default underneath the header image and widget?
Here's a screenshot of what I mean: http://snag.gy/aO8T9.jpg
lvvvvvlParticipantDoes nobody know how to fix this? I think my traffic is being affected due to this problem as many visitors can't read the content.
lvvvvvlParticipantAwesome! thank you!
lvvvvvlParticipantHello Brad thanks for responding,
I had an idea that I was wondering if it's possible to do just for peace of mind to know I can use it as a last resort.
Is there any way to create an executive 2.0 page template for the executive pro update? A page that will be an exact duplicate of what the current executive 2.0 theme loads? I'm loading the html5 at the moment and everything works fine so this could be a good option from my poor understanding.
lvvvvvlParticipantThanks Brad for your response. How do I find out what version of jquery wordpress is loading (I have the latest wordpress version)? And will the new executive 3 pro change what jquery wordpress will load?
lvvvvvlParticipantThanks a lot Spanka! I applied everything you said and it looks great on both desktop and phone!
Very thorough 😀
lvvvvvlParticipantStill trying to fix this...does anyone have any other suggestions?
lvvvvvlParticipantThanks for the response. I've added the plugin and created a 480x image for my site, the logo looks better but the problem with the text widget still remains, you can't read the first words of every sentence. Is there anything else I can do?
July 31, 2013 at 8:51 am in reply to: Adding an icon to each menu entry in the Executive Theme #53388lvvvvvlParticipantAnyone?
July 30, 2013 at 5:58 pm in reply to: Adding an icon to each menu entry in the Executive Theme #53299lvvvvvlParticipantAlso, is there anyway to make the icon not load when browsing via mobile? I'm afraid Executive being a responsive theme it might look bad when using icons in small screens in the menu.
lvvvvvlParticipantI've contemplated that but most bars don't allow the option of adding custom codes/html like the facebook like button or subscription forms, and the ones that do like HelloBar charge monthly fees for full features.
lvvvvvlParticipantHi Brad,
Thanks for all this info. I'm trying to use your pure css method of adding the sticky bar at the top, but it seems everything I add (like this mailchimp form I got from the tutorial: http://www.studiosmithson.com/10-quick-and-easy-steps-design-inline-mail-chimp-super-slim-subcribe-form) seems to overlap and align to the left no matter what floating positions or height I give the bar.
The Q2W3 plugin looks like a good concept, though I've unsuccessfully activated it and applied the Fixed setting to two widgets. I believe it might be because the Primary Sidebar of my child theme's widgets have no id attributes according to this (http://wordpress.org/support/topic/not-working-hopefully-an-easy-fix?replies=4).
In my functions, my child theme registers all the homepage sidebars:
`genesis_register_sidebar( array('id' => 'home-slider',
'name' => __( 'Home - Slider', 'executive' ),
'description' => __( 'This is the slider section on the home page.', 'executive' ),
) );
genesis_register_sidebar( array(
'id' => 'home-top',
'name' => __( 'Home - Top', 'executive' ),
'description' => __( 'This is the top section of the home page.', 'executive' ),
) );
genesis_register_sidebar( array(
'id' => 'home-cta',
'name' => __( 'Home - Call To Action', 'executive' ),
'description' => __( 'This is the call to action section on the home page.', 'executive' ),
) );
genesis_register_sidebar( array(
'id' => 'home-middle',
'name' => __( 'Home - Middle', 'executive' ),
'description' => __( 'This is the middle section of the home page.', 'executive' ),
) );`
But there's no 'before_widget' parameter to change to :
Wouldn't have thought adding a simple nice looking top sticky bar would be so complicated.
lvvvvvlParticipantHey Brad,
Thanks for the assistance. Took me a while to work out where to insert the div calling that class (just after the opening <body>). The bar appears at the top, but it doesn't seem to be using the jquery effect of FadeIn after 200 pixels. It shows as a static bar at the top.
Also, do I have to use this part of the tutorial:
`// Reposition the secondary navigation menu
remove_action( 'genesis_after_header', 'genesis_do_subnav' );
add_action( 'genesis_before', 'genesis_do_subnav' );
`Seeing as I'm not going to to calling or removing any current navigation menus?
Thanks
-
AuthorPosts