I am new to using _s (underscores) – and trying to create a custom masthead for a static landing page (all other pages on the site will have a reduced masthead).
However I am running in to an issue where the masthead shows up correctly on desktop browsers, but seems to be hidden completely on mobile devices (both Android and Apple)…
At first I thought I had made a mistake somewhere along the lines of developing the theme I’m working on after hacking away. To test that theory, I downloaded a FRESH copy of underscores, started working on the masthead again, and the problem persists – so this has got to be something glaringly obvious that I am missing…
One solution (this one happens to be for a redeveloped theme), but did not work: https://www.ads-software.com/support/topic/top-header-does-not-show-up-on-mobile/.
The solution from the link above did not work in my case.
Even with the css fix above – if I make changes to the css for the masthead – those changes still DO reflect on the desktop version (for example I set the background colour of a div from white to red based on screen size, the background colour changes as it should) – Still just not seeing what I need on mobile…
What are some of the other obvious things (to _s?) that I can look for?
Any help would be very greatly appreciated!
Thank you
]]>I have too little knowledge to do this myself. Is it possible to receive or get a view of an edited example for the “home.php”? I understand this is a lot of work, but I would really love to add this to my website…
Many thanks in advance!
]]>My theme has no issues on my new site. I wanted to check it on 1 or both of my other sites. I used All in 1 WP Migration (think that’s the name) to pull down my one site so I thought I would test it locally first. There are a few style problems with pages built with Elementor but otherwise, it looked good. I don’t where to begin…
Using my theme on my localhost with the download of my site, the single blog posts do not have a footer. It’s loading single.php but the footer isn’t there. I can’t remember but I may have built my footer with Elementor, but I’ve since switched to a regular footer with widgets. I’ll be posting a separate issue with my footer.
Then the blog page. I never knew I was supposed to create a blank page called Blog and set that to the posts page. What I did was set my Home page as the static home page and didn’t set anything for the blog page. On my live site, it’s fine – blog page is normal. But the image link above is what I see when I click on the link to the blank Blog page I created and set it to the posts page. All my template pages are loading: archive, category, page, author, front-page but not home.php.
So I uploaded my theme to a site that I will not be keeping. I created a blank Blog page, set it to the posts page but it did not display anything except for the header and footer.
Is there something that each theme has to do to clear out and records from a previously activated theme? I have no idea what to even ask. Why does every page have a footer except single.php? Why won’t home.php load?
]]>The shortcode will load on every post, custom post type, page, and every category archive intro that I’m using (on a Genesis child theme), except not on the Posts Page. This is the page that is set as the ‘static’ Posts Page to show the blog separately from a WP home page under Settings > Reading.
I am using this page to display the blog post with a custom template called home.php to show the archive intro, like on other category archive. I used this method. The shortcode is placed in the body text of that page, using the block editor, just like I do on every other page.
The expand collapse shortcode appears as text, but it does not expand or collapse. I look in the HTML, and the js won’t load at all. I tried loading it in the header as explained here: https://www.ads-software.com/support/topic/collapse-o-matic-doesnt-work-after-plugin-update/ but it didn’t work.
I have tried undoing, and re-checking a bunch of plugin settings. I tried turning off the setting to only load if the shortcode is being used. I tried turning on the filter. I’ve tried disabling plugins, disabling minification of all js, disabling caches, clearing caches, resetting file permissions (just in case), disabling the customized home.php template… and no matter what, the collapse-o-matic script won’t load on this page.
Do you know why? How can this be fixed?
Thank you
]]>I am finding it works perfectly and as directed on every page that I set its rules on. However, it doesn’t seem to want to ‘obey’ some rules on the blog page, which is set to the ‘static’ page to show blog posts, in our “Readings” settings. In other words, “home page” (i.e. front-page.php) and “posts page” (home.php) are set to use different WP “pages”.
Do you know why this is?
I have checked this page https://assetcleanup.com/docs/changes-applied-not-taking-effect/ but none seem to apply to us. I also looked through the settings over and over again, and nothing seems to be causing this. I also can’t figure out why it’s only happening on this one page.
When I go to CSS & JS Manager here https://cloudup.com/cMoi74b_ISv –> I am told to set these settings in the page that is designated as “posts page.”
When I go there, I see the settings look correct. But in the HTML itself, many (not all) rules are ignored. E.g. all our woocommerce rules don’t take effect. GTM4WP rules also don’t work. I have tried clearing cache, putting cloudflare in dev mode, disabling the home.php child theme template, etc. but nothing seems to change.
Is there something about this page or template that it won’t ‘obey’ rules like this?
Thank you very much for your help.
]]>I’m playing around with the WordPress Twenty Nineteen theme, WP v 5.02.
I created two extra pages, Home and Blog.
Under Appearance > Homepage Settings I set Homepage to Home, and Posts Page to Blog.
I created two templates, page-homepage.php and home.php.
WordPress finds home.php and uses it to display the blog listing.
However, when I add a featured image to the Blog page, it doesn’t show up.
Does anyone know why this is?
]]>My home.php code was deleted when I was trying to edit code, but received an error message and everything was erased! Fortunately, I emailed the theme creator (theme is WooThemes ‘Morning After’) and they sent over the original home.php text file, which I can work with…. However, When I try to update any changes to the code in the Editor, I receive the following error message:
Unable to communicate back with site to check for fatal errors, so the PHP change was reverted. You will need to upload your PHP file change by some other means, such as by using SFTP.
How do I fix this issue? Note: I’m a bit of a novice with html, etc so please keep that in mind when providing feedback, as I will need instructions in more layman’s terms.. Thank you!!!!
]]>When they user goes to that link they get taken to that specific post in the index page of posts where they can still go forward and backward along earlier and later posts.
What’s the best way to do this? Right now I’m using the home.php
]]>I am using Advanced Custom Fields to personalize the backend of the theme and having a hard time figuring which file to modify to add a button on the homepage list article next to the read more button.
The home.php is as follow:
`// Display Magazine Homepage Widgets.
if ( ! is_paged() && is_active_sidebar( ‘magazine-homepage’ ) ) : ?>
<div id=”magazine-homepage-widgets” class=”widget-area clearfix”>
<?php dynamic_sidebar( ‘magazine-homepage’ ); ?>
</div><!– #magazine-homepage-widgets –>
<?php
endif;
if ( have_posts() ) :
// Display Latest Posts Title.
if ( ” !== $theme_options[‘blog_title’] ) : ?>
<header class=”page-header”>
<h1 class=”archive-title”><?php echo wp_kses_post( $theme_options[‘blog_title’] ); ?></h1>
</header><!– .page-header –>
<?php endif;
while ( have_posts() ) : the_post();
get_template_part( ‘template-parts/content’, $theme_options[‘post_layout’] );
endwhile;
zeedynamic_pagination();
else :
get_template_part( ‘template-parts/content’, ‘none’ );
endif; ?>
<a href=”https://gratisenvoorniks.be/” target=”_blank”>This is the website</a>
Also trying to translate that “read more”, loco translate and poedit seamed to fail!
Any help appreciated, thank you!!
]]>I’ve got a front-page.php that I’m using to create a magazine style home page. I’d intended to then have the more traditional “blog” style follow behind from /page/2/ etc, only this isn’t happening. It appears home.php and index.php are being ignored.
I’ve tried using static pages – both with explicit pages and relying on the hierarchy. Nothing seems to work though.
Has anyone come across this before and managed to get it fixed?
Thanks for help!
]]>