anotherphilip
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Allowing header images on secondary pagesI’m looping..
So, I don’t think anything needs to be changed in header.php. As far as I understand, get_header refers to header.php, which walks down the list, finds get-template includes/front, which should do its job even though it’s not the file I had intented for it.
So let’s check includes/front-header-image-section.php
It starts with `<?php if( get_header_image() ) { ?>’. Since fullwidth.php has get_header_image in it, that shouldn’t be the problem either. (By now I’m not sure why I thought I needed a fullwidth.php in the includes-directory).Moving on to template-fullwidth.php
It currently starts like this:<?php get_header_image(); ?> <?php get_header(); ?> <?php get_template_part( 'includes/fullwidth'); ?>
That seems excessive. If I remove get_header, the header image appears on the page! But all the styling disappears, and I’m left with an unformatted, black and white page. Removing any of the others has no effect.
What about the front page template?
It has no get_header_image, only get_header. So why should I need that on the fullwidth template? This leads me right back to header.php, and the only thing I can discover: maybe this does need to refer to includes/fullwidth somehow. With a conditional statement?My brain hurts. Any more pointers?
Forum: Fixing WordPress
In reply to: Allowing header images on secondary pagesAh, now I see where it refers too. Thank you.
By way of experiment, I made a new file in the ‘includes’ directory, and named it Fullwidth.php. I copied the code from front-header-image-section.php. Then I went to template-fullwidth.php and added
<?php get_template_part( 'includes/fullwidth' ); ?>
After each step I refreshed a page using the fullwidth template – no change so far.
I then went to header.php and added
<?php get_template_part( 'includes/fullwidth' ); ?>
underneath the line I quoted in my earlier post. This caused a second header image to show beneath the first one on the front page, but still nothing on any other page.Am I getting closer?
Forum: Fixing WordPress
In reply to: Allowing header images on secondary pagesI posted there twice in the past few months (once with this exact same question). Both times, not a single response. I don’t think they spend much time helping non-paying customers.
- This reply was modified 7 years, 8 months ago by anotherphilip.
Forum: Fixing WordPress
In reply to: Allowing header images on secondary pagesOkay, I think I’ve narrowed it down a bit. Both the functions.php and template-fullwidth.php seem to be doing what they should – I think they key may be in this line of the header.php-file
<!-- header image section --> <?php get_template_part( 'includes/front', 'header-image-section' ); ?>
Do I need to add a reference to the fullwidth template somehow? And if so, how?
I will, but based on previous experience I strongly doubt I’ll get a response there..
UPDATE:
So I’ve figured out that the correct URL for a section is like the following:
https://www.domainname.com/#section2
If I type that in my browser it sends me to the correct section. However, when I type that as the Custom Link URL the menu button does not do the same..
Also, the Menu Button for the Section I used to send me to the site the first now stays highlighted, even when navigating the rest of the site.
- This reply was modified 8 years ago by anotherphilip.
Forum: Fixing WordPress
In reply to: “I thought this’d be simple” – trying to embed a video inLike a charm! Now it’s time to sort out the details ??
I’ll post back here if I get a response on the other thread.
Thanks so much, Lyle!Forum: Fixing WordPress
In reply to: “I thought this’d be simple” – trying to embed a video in@learnwpbasics Awesome, Lyle! I’ll definitely get to work on that in the morning – first I need sleep, and my eyes and fingers need a break ??
Out of sheer curiosity: why don’t the regular methods work? By my (wet behind the ears) reasoning that would mean there’s some line of code in the theme that specifically blocks videos. But why? And shouldn’t we be able to remove that rule? So many questions..
Anyway, I’ll let you know how it goes ??
-Philip
- This reply was modified 8 years, 1 month ago by anotherphilip.
Forum: Fixing WordPress
In reply to: “I thought this’d be simple” – trying to embed a video inThanks for your response.
If I simply type out the URL, the URL shows up as text on the page. No video.
“So called” because I wasn’t sure if it’s a technical term; this theme uses the word for an area of the site controlled through the Customize bar, like this, rather than through the Dashboard-side, if that makes sense to you.