Blog 'Share This'

resolved (15 posts) (3 voices)

  1. If you have a blog post without a featured image, the share this bar does not show up. Looking at the theme demo (Fusion), it seems to be a part of the blog image "box". And if you end up with a blog post without an image, you get hung out to dry without a share bar.

    Posted 4 months ago #
  2. Elliott
    Support

    Hello IamMarix,

    That is correct. If you don't want to use a featured image you can insert our social media shortcodes into your post also, http://mysitemyway.com/docs/index.php?title=Social_Media_Shortcodes.

    Posted 4 months ago #
  3. sunstardave
    Member

    Hi Elliott.

    I was searching the forums regarding this very point.

    Can I ask the reasoning as to why not having a featured image should result in disabling/removing the share links? A featured image has nothing to do with sharing a blog post, so setting it up this way simply doesn't make sense.

    The shortcodes are fine for some purposes but if want to add have all 6 show, they take up a lot more space than the nice neat share bar under the featured image.

    Cheers,
    David

    Posted 2 months ago #
  4. Elliott
    Support

    For Fusion they display on top of the featured image so if you disable it then there is no more space for them to display.

    The social media shortcodes have different layouts you can use to make them smaller.

    Posted 2 months ago #
  5. sunstardave
    Member

    Hi Elliott.

    I'm not sure I agree.

    Have a look at this quick mockup. ;o)

    So, while I understand that they overlay the featured image by design, they can easily be accommodated in that layout when it's disabled. So, perhaps sitting under the image would be a good idea, so we would essentially be dealing with 2 completely separate elements.

    And the more important point is why would that be a good way of designing it in the first place. As I asked before, what does the Featured Image have to do with sharing the post? Nothing, I suggest.

    Cheers!

    Attachments

    1. blog-social-links.jpg (131.1 KB, 0 downloads) 2 months old
    Posted 2 months ago #
  6. Elliott
    Support

    To do that change line 166 in /wp-content/themes/[your_theme]/framework.php to this,

    add_action( 'mysite_singular-post_before_post', 'mysite_post_sociables' );

    And then add this in Dashboard -> your theme -> General Settings -> Custom CSS,

    .share_this_module { position: relative !important; }

    Posted 2 months ago #
  7. sunstardave
    Member

    Thanks!

    Posted 2 months ago #
  8. sunstardave
    Member

    Hi.

    It hasn't worked and I just tried to post a rather detailed explanation as to what I did but got an error when I tried to post it, which resulted in it disappearing. Arg!!

    So, in a nutshell: I tried it and it didn't work.

    Here are line 146 though 184 from the original framework.php:

    # Mysitemyway actions
    add_action( 'mysite_head', 'mysite_header_scripts' );
    add_action( 'mysite_before_header', 'mysite_fullscreen_bg' );
    add_action( 'mysite_header', 'mysite_logo' );
    add_action( "mysite_header", 'mysite_primary_menu' );
    add_action( 'mysite_after_header', 'mysite_header_extras' );
    add_action( 'mysite_after_header', 'mysite_slider_module' );
    add_action( 'mysite_after_header', 'mysite_teaser' );
    add_action( 'mysite_intro_end', 'mysite_post_meta_single' );
    add_action( 'mysite_before_post', 'mysite_post_image' );
    add_action( 'mysite_before_page_content', 'mysite_home_content' );
    add_action( 'mysite_before_page_content', 'mysite_page_content' );
    add_action( 'mysite_before_page_content', 'mysite_page_title' );
    add_action( 'mysite_before_page_content', 'mysite_query_posts' );
    add_action( 'mysite_portfolio_image_end', 'mysite_portfolio_meta' );
    add_action( 'mysite_post_image_end', 'mysite_fancy_read_more' );
    add_action( 'mysite_post_image_end', 'mysite_post_img_overlay' );
    add_action( 'mysite_portfolio_image_end', 'mysite_post_img_overlay' );
    add_action( 'mysite_singular-post_post_image_end', 'mysite_post_sociables' );
    add_action( 'mysite_after_portfolio_image', 'mysite_post_img_overlay' );
    add_action( 'mysite_before_entry', 'mysite_breadcrumbs' );
    add_action( 'mysite_before_entry', 'mysite_post_meta' );
    add_action( 'mysite_blog_before_entry', 'mysite_post_title' );
    add_action( 'mysite_archive_before_entry', 'mysite_post_title' );
    add_action( 'mysite_singular-portfolio_before_entry', 'mysite_portfolio_date' );
    add_action( 'mysite_singular-portfolio_before_entry', 'mysite_post_title' );
    add_action( 'mysite_singular-post_after_entry', 'mysite_post_nav' );
    add_action( 'mysite_singular-post_after_entry', 'mysite_post_meta_bottom' );
    add_action( 'mysite_singular-post_after_post', 'mysite_like_module' );
    add_action( 'mysite_singular-post_after_post', 'mysite_about_author' );
    add_action( 'mysite_after_post', 'mysite_page_navi' );
    add_action( 'mysite_after_main', 'mysite_get_sidebar' );
    add_action( 'mysite_before_footer', 'mysite_footer_teaser' );
    add_action( 'mysite_footer', 'mysite_main_footer' );
    add_action( 'wp_footer', 'mysite_sub_footer' );
    add_action( 'mysite_body_end', 'mysite_print_cufon' );
    add_action( 'mysite_body_end', 'mysite_image_preloading' );
    add_action( 'mysite_body_end', 'mysite_intro_javascript' );
    add_action( 'mysite_body_end', 'mysite_custom_javascript' );

    Can you advise?

    Thanks.

    Posted 2 months ago #
  9. Elliott
    Support

    Your edited the line like this,

    add_action( 'mysite_singular-post_post_image_end', 'mysite_post_sociables' );

    That's not the same as what I posted,

    add_action( 'mysite_singular-post_before_post', 'mysite_post_sociables' );

    Just copy and paste the code from my post to make sure there are no typos.

    Posted 2 months ago #
  10. sunstardave
    Member

    The snippet I posted above is from the unedited framework.php file i.e. BEFORE I did made any changes.

    Quote: "Here are line 146 though 184 from the ORIGINAL framework.php:"

    So, on that basis, what do I need to change?

    Posted 2 months ago #
  11. Elliott
    Support

    Download a fresh copy of the theme and do this, http://mysitemyway.com/support/topic/blog-share-this#post-55130.

    Posted 2 months ago #
  12. sunstardave
    Member

    What? Do that and also replace the entire theme or just replace the framework.php file?

    Elliott, you and I seem to have an ongoing issue with communication. I don't know why but it seems that time after time after time, I have to repeat and clarify what the problem is e.g. I mentioned that the code snippet was from the original framework.php file and you ignored that and assumed that I edited it incorrectly, when I hadn't. So, I had to post a message back to clarify that.

    And now you are telling me to download a fresh copy of the theme and make the change described above without telling me if I am replacing the entire theme or just the framework.php file. So, another message asking for yet more clarification.

    This results in several needless messages back and forth and speaking for myself, causes a LOT of frustration.

    Posted 2 months ago #
  13. Elliott
    Support

    I'm not sure how to make it any clearer for you. If it's not working then send us a link to your page and zip up / attach your framework.php file so we can see if you edited it properly.

    Posted 2 months ago #
  14. sunstardave
    Member

    You've just done it again! You can make it clear by actually answering my question.

    Do I have to replace the entire theme or just the framework.php file???

    Posted 2 months ago #
  15. Elliott
    Support

    Either will work.

    Posted 2 months ago #

Reply

You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme