Kary

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 37 total)
  • Author
    Posts
  • in reply to: "Featured Image" for Homepage when Shared #137198

    Kary
    Participant

    Okay…got it to work finally. Thanks for your help. This is the code that I used and I am finally able to see the image in the Facebook debugger.

    function change_home_og() {
      if ( is_home() || is_front_page() )
        echo '<meta property="og:image" content="http://techiemuse.com/wp-content/uploads/2015/01/TechieMuse.png" />';
    }
    add_action( 'wp_head', 'change_home_og', 5);

    For anyone who wants to do this, make absolutely certain your image is 200×200 or Facebook will pull something else from the page that is that size. Not sure if it can be a large (square) image. But the 200×200 definitely worked for me.
    FB debugger

    in reply to: "Featured Image" for Homepage when Shared #137190

    Kary
    Participant

    Unfortunately, it still is not working for me. This is the code I’ve uploaded via my functions file

    function medic_home_og() {
      if ( is_front_page() )
        echo '<meta property="og:image" content="http://techiemuse.com/wp-content/uploads/2015/01/TechieMuse.png" />';
    }
    add_action( 'wp_head', 'medic_home_og', 5);

    When I check this site, the image does not appear. I have clicked the “rescrape” button. https://developers.facebook.com/tools/debug/

    Someone else suggested to try if ( is_home() || is_front_page() )as the conditional statement. But this isn’t working for me either.

    in reply to: "Featured Image" for Homepage when Shared #137174

    Kary
    Participant

    Is there a function I can write that uses the front-page.php? I am not good at writing functions code. But instead of if ( is_front_page() ) would a genesis hook specific to the front-page.php work?

    parallax_home_genesis_meta

    in reply to: "Featured Image" for Homepage when Shared #137173

    Kary
    Participant

    It doesn’t appear if ( is_home() ) works either. Neither of these add an image to my og: image meta tag. I checked in two ways. I physically looked at my source code. And for grins, I went to the Facebook debugger to see what image(s) it pulls up for the og:image meta tag. The image I have designated does not appear.

    Facebook debugger

    in reply to: "Featured Image" for Homepage when Shared #137172

    Kary
    Participant

    Okay…not working. I believe its because the theme I’m using (Parallax Pro) you don’t actually set a static homepage for the “home page.” You simply start filling in the widgets and the home template becomes active.

    The code if ( is_front_page() ) is looking for a static homepage that I would have set in my WP admin area.

    Does anyone have an idea as to how to get this function to work on a theme like the one I’m using?

    in reply to: "Featured Image" for Homepage when Shared #137169

    Kary
    Participant

    Hi Shawna, it would work perfectly except my theme doesn’t actually have a home page that I created. So I would have to do that somehow on the template file.

    Thanks Carlo, someone else pointed me to GitHub snippet. https://gist.github.com/callingmedic911/22fa7f8071f69232d640
    It is a similar idea to your function.

    I know little about writing a function code that won’t break the theme. So I inserted the one from GitHub (Below) using Dreamweaver and received an error and of course deleted before saving. Something was wrong with that code. So I’ll see if I can get your’s to work. Thanks so much.

    medic_home_og() {
      if ( is_home() )
        echo '<meta property="og:image" content="http://link/to/your/og/image/file" />';
    }
    add_action( 'wp_head', 'medic_home_og', 5);
    • This reply was modified 1 week, 6 days ago by  Kary.
    • This reply was modified 1 week, 6 days ago by  Kary.
    in reply to: Drop-down Monthly Archives List by Category #136223

    Kary
    Participant

    Eek! I was able to find a plugin that works perfectly. Big problem: The plugin hasn’t been updated in 2 years so of course, i’m not very comfortable with that.
    recipe index

    The plugin is successfully pulling the correct posts and putting them in that monthly archive list. But like I said, the plugin is 2 years old. Does anyone know of another plugin that is updated and being supported? The name of the plugin I used was

    Wordpress Category Archive – https://wordpress.org/plugins/wp-category-archive/

    in reply to: Customizing Modern Portfolio Theme #116045

    Kary
    Participant

    Brilliant! I totally forgot about the Jetpack’s “visibility” option. I just made two versions of the main menu, placed them both in the “Header Right” widget…selected the option to HIDE one only on the front page and to SHOW one only on the front page.

    Thanks!

    in reply to: Different menu on home page #116041

    Kary
    Participant

    Thanks Kellylise, I will look into that.

    in reply to: Fixed Header and One Page Design #115824

    Kary
    Participant

    I got it to work but had to do a lot of tinkering with the Function.php, home.php and style.php files. It’s simple but quite involved. If anyone wants to read how to make this work, I can come back and explain it here.

    in reply to: centric pro #108501

    Kary
    Participant

    Just an FYI in case anyone runs across this problem. If you’re logged into WordPress, and have the black bar at the top (I’m not sure what that bar is called) it will cause a gap to appear above the menu header when you resize the window to the size of an iPhone.

    However, if you log out of WordPress, and try again, you’ll notice the gap disappears. So I don’t think visitors to your site will actually see the gap. :)

    in reply to: Centric pro spinning social icons #108499

    Kary
    Participant

    Also, if you’re like me and want to stop editing the child theme but add your own style sheet instead, just use this style on your custom style sheet

    .simple-social-icons li a:hover {
    	-webkit-transform: rotateZ(0deg);
    	-moz-transform: rotateZ(0deg);
    	transform: rotateZ(0deg);
    }
    • This reply was modified 7 months, 3 weeks ago by  Kary.
    • This reply was modified 7 months, 3 weeks ago by  Kary.
    in reply to: Scribble & Jetpack Carousel #108406

    Kary
    Participant

    I just saw that Scribble made a minor update so I’m going to try and see if that resolves anything. If anyone looks at the site in the next little while, it will be in maintenance mode until I get all the pieces knitted back together.

    AGH! No…didn’t fix it the issue. And now I’ve got an f’ed up site that needs to get sewn back together. I have 2 choices…go to the trouble of getting my custom CSS styles and widgets all back in a row. Or just move on.

    I believe it is time to move on down the road and choose another theme. Very tired of Scribble.

    Fair-the-well Scribble theme. You were fun while you lasted.

    • This reply was modified 7 months, 3 weeks ago by  Kary.
    • This reply was modified 7 months, 3 weeks ago by  Kary.
    in reply to: Scribble & Jetpack Carousel #108401

    Kary
    Participant

    Yes Ryan….the bug you found in the scribble.js is another bug that’s been around since a WordPress version about 3-4 updates ago. Like I said…I’m about to give up on the theme.

    in reply to: Scribble & Jetpack Carousel #108400

    Kary
    Participant

    Just for grins, I put the exact same post on another blog (the site is a WPMU site). The only difference is the theme. All plugins installed are “network installed” so it isn’t a plugin issue.

    http://diywebdesign.techiehero.com/2014/06/06/test-post/

    so this seems to be 100% a Scribble bug.

Viewing 15 posts - 1 through 15 (of 37 total)