evelynworks
Forum Replies Created
-
Hi @britner,
After adding header.php to a templates folder, it is working, however, how do I change the code so that it doesn’t replace header on all of the pages? Only need it on the blog page. Thank youI am not, it is placed in “virtue_child”
Should I place in a new folder called templates within the theme folder?@britner sorry for late reply somehow I am not getting email notifications.
I changed to
is_home()
but did not work. Can I paste the whole child theme header.php here? Or is there another file you need to see?Thank you!
Hi @britner, sorry about that! I’ll def keep it in mind for next time.
I do have a sitewide banner image uploaded. And I BELIEVE the blog page is 5 but that may be my mistake. I am using a child theme.The site is: https://www.writinglikeamadwoman.com
Thanks so much
Or anyone if @britner is not available! (see post above ^^^ )
Hello @britner! I was hoping you can help.. I have utilized all of the above on my site to put a different banner on the blog page, and it is not working, not sure where I went wrong? Code is below, line 82 to end:
if (!empty($virtue['virtue_banner_upload']['url'])) {?> <div class="container"> <div class="virtue_banner"> <?php if(is_page('5')) { echo '<img src="https://writinglikeamadwoman.com/wp-content/uploads/2017/04/bloghead.png">'; } else { echo '<img src="https://writinglikeamadwoman.com/wp-content/uploads/2017/04/bloghead.png">'; }?> </div> </div> <?php } ?> </header>
- This reply was modified 7 years, 11 months ago by evelynworks.
Forum: Themes and Templates
In reply to: [Virtue] Different sitewide banner on blog page@alchymyth — apologies and appreciated!
Forum: Themes and Templates
In reply to: [Virtue] Side bar content on top in mobile view?Hannah thank you so much and sorry for late reply. Had a major case of the flu. I will give this a shot, although client doesn’t seem so concerned about this anymore. Thanks again!
Forum: Themes and Templates
In reply to: [Virtue] Different sitewide banner on blog pageWeird! Image keeps showing up even with wrong url. So here it is with just, URL:
if (!empty($virtue[‘virtue_banner_upload’][‘url’])) {?>
<div class=”container”>
<div class=”virtue_banner”>
<?php if(is_page(‘5’)) {
echo ‘‘;
} else {
echo ‘‘;
}?>
</div>
</div>
<?php } ?>
</header>Forum: Themes and Templates
In reply to: [Virtue] Different sitewide banner on blog pagetrying again with extra “h”:
if (!empty($virtue[‘virtue_banner_upload’][‘url’])) {?>
<div class=”container”>
<div class=”virtue_banner”>
<?php if(is_page(‘5’)) {
echo ‘‘;
} else {
echo ‘‘;
}?>
</div>
</div>
<?php } ?>
</header>Forum: Themes and Templates
In reply to: [Virtue] Different sitewide banner on blog pageoops just realized that the image comes up instead of url, here is code again with spaces:
if (!empty($virtue[‘virtue_banner_upload’][‘url’])) {?>
<div class=”container”>
<div class=”virtue_banner”>
<?php if(is_page(‘5’)) {
echo ‘‘;
} else {
echo ‘‘;
}?>
</div>
</div>
<?php } ?>
</header>Forum: Themes and Templates
In reply to: [Make] Show full post instead of excerptThank you @declour. Unfortunately this did not work. I think the issue is with the DsgnWrks Instagram Importer. My client is editing the automated posts and that is the text that is not showing up in the feed. Any chance you know anything about this plugin??
Thanks!Forum: Fixing WordPress
In reply to: Parse Error in functions.phpDid you ever figure out how to fix this? I’m having the same issue–I replaced the file with a fresh one a number of times. Getting the same syntax error for a line that doesn’t exist.
Forum: Plugins
In reply to: [Custom Contact Forms] Suggest A Feature!**Specifically using TablePress
Forum: Plugins
In reply to: [Custom Contact Forms] Suggest A Feature!Shortcode functionality would be nice! I’d like to use this form within a table, so the “Insert Form” button on pages only does not help me.
Please let me know if there is a way around this. Thanks!