Forum Replies Created
-
AuthorPosts
-
KaryMember
This is a very old post but I'm dealing with trying to do the same thing and just wanted to point something out. Your secondary menu is probably there, its just "hidden" at the top of your header. For example, when I changed the CSS to this
.nav-secondary { margin-top: 159px; }
My secondary menu became visible. There are other tweaks that will need to be made, but this will at least get it showing below the header as opposed to at the top & underneath it. To see if you have a secondary nav, go into your page source and see if you can find a line of code similar to this...
<nav class="nav-secondary" role="navigation"
etc....This will verify your secondary nav menu is there.
KaryMemberOkay...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 200x200 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 200x200 definitely worked for me.
KaryMemberUnfortunately, 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.KaryMemberIs 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
KaryMemberIt 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.KaryMemberOkay...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?
KaryMemberHi 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);
KaryMemberEek! 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.
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/
KaryMemberBrilliant! 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!
KaryMemberThanks Kellylise, I will look into that.
KaryMemberI 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.
KaryMemberJust 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. 🙂
KaryMemberAlso, 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); }
KaryMemberI 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.
KaryMemberYes 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.
KaryMemberJust 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.
KaryMemberThanks for the heads up. It seems what you're describing is a different issue entirely...and a serious one. However, after looking online a bit, it seems that the issue I'm talking about was a big problem with IE8 as well as its inability to (or persnickety-ness) of rendering opacity. But that's another problem for another discussion.
I can and probably will include the function code described in your article in my theme. But if IE8 doesn't render that CSS code appropriately, then anyone visiting the site with IE8 will experience the problem.
A bigger problem IMO: anyone dealing with a responsive design (all current Genesis themes) will is having this same bug on their site but may not know it.
Luckily, IE9, 10 and 11 don't have this bug. But as we remember from the good old, bad old days of IE6, people sometimes have a hard time updating their browsers...particularly within companies and such won't allow them to do it themselves. BTW, I learned of this problem because my husband works for a Fortune 50 company (actually a top 10 company) and yes...they are still using IE8. So its not like its only loser companies and low-lying fruit who are browsing the web with obsolete browsers. Apparently, it costs millions of dollars to change something this simple. So change is slow to happen.
But back to the bug....
If I'm correct...then anyone here in Genesis land who is using a responsive design, is actually having the same problem I am seeing, but may not know it.
I think there should be a fix. Unfortunately, what I've found lately is that in order to get an answer from support around here, we have to actually submit a ticket -- which seems silly. But if they need to answer the same question 10X because 10 different people submitted support tickets instead of having the question and answer discussed publicly, so be it. i'm off to write a support ticket.
KaryMemberSo I found a "fix" that will work if all else fails. But frankly I'd rather find a solution I can do in CSS or elsewhere so I don't have to fix each and every photograph that gets uploaded to my WP site.
If I go in and remove the explicit "width" and "height" attributes that WP places on images, then the image will render fine in IE8 and all browsers. You can see the screenshot below.
However, like I said, I have to actually remember to REMOVE something that WP automatically places in the code when I embed an image on a post or page. So if anyone knows of a CSS or other fix that will resolve the issue in IE8 without screwing up the responsiveness of the images in all other browsers, I'd appreciate it.
KaryMemberThanks Tom for all your help. I notified customer support of your solution and they then admitted they must have misunderstood my original question....stating their answer was not the correct one. However, your's was. 🙂
KaryMemberThanks again Tom. In the end, I basically changed everything. "In for a penny. In for a pound," I guess applies here. I decided to go with a custom post type instead of trying to intermingle my portfolio posts with my blog posts and keep them separate.
It took a bit of finagling to get things to show I wanted to show up, and things to go away I wanted removed. But in the end, I've got it working. Now it needs some tweaking and some more portfolio items.
Because I'm using the CPT, I was able to use the description field and didn't have to use the archive fields. It works fine. But on the regular category archives page, you are correct, the only way I could get the description to appear was to use the archive fields. I have no idea why that Genesis tutorial was referred to by support because it does not work in any way. I guess I should let them know that if it works...it definitely doesn't work on all themes and perhaps they need to update the tutorial to include the information you provided. 🙂
-
AuthorPosts