This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

Facebook is picking up sidebar content instead of post

  • Creator
    Topic
  • #8077
    beckythetechy
    Participant

    My client just decided to start using your theme and she decided to use the left sidebar layout. Apparently when she posts the link to her post to facebook the excerpt it picks up is from one of her sidebar widgets rather than the post content. I know this is most likely because facebook is just following the code that it hits first and following it before it moves to the next piece. Any suggestions? Also we were wondering if there was a way to hide the sidebar on mobile devices? Because she is using the left sidebar layout all her sidebar widgets show before the post content on mobile devices.

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #8079
    Jason Bobich
    Keymaster

    Hello,

    Apparently when she posts the link to her post to facebook the excerpt it picks up is from one of her sidebar widgets rather than the post content.

    This honestly sounds like it would be the fault of whatever widget you’re using before the facebook widget. It’s possible it’s modifying the main query and then not restoring it properly. It’s not one of our’s, right? Is this a widget from third-party source? I’d try experimenting with another widget in that place that accomplishes something similar or maybe post in their support forum if it’s a wordpress.org forum.

    Also we were wondering if there was a way to hide the sidebar on mobile devices?

    Hiding it with CSS would probably be an easy solution.

    @media (max-width: 480px) {	
    	.fixed-sidebar {
    		display: none;
    	}
    }

    ========

    For CSS changes, it’s a good idea to use a tool like firebug or Google Chrome’s built-in developer tools to locate them and then put the edits either in your child theme or in the “Custom CSS” option on your theme options page.

    Also, here’s a helpful tutorial on how to use Firebug – http://vimeo.com/20917974. The only thing I’d suggest not doing is actually making edits to the theme’s CSS files, as it shows at the end of that video. However, the video serves as a good introduction to Firebug and how it can be used to find what CSS is effecting certain areas of your site without ever digging around in any files.

Viewing 1 replies (of 1 total)
  • The forum ‘Alyeska Responsive WordPress Theme’ is closed to new topics and replies.