Hi. I want to conditionally hide my Wordpress blog featured image and its title. I have the blog image now loading correctly on the main blog page, but the issue is that an empty container loads when the blog page's featured image is not present... I don't want an empty container to load. I want to conditionally hide this with my IF statement.. and conditionally hide the title as well. None of what I try works though. I would like you to Skype with me and use Teamviewer so I can see the changes that are being made. If you know PHP, IF statements and Wordpress hooks then this should just take a few moments.
Here is the code I am using to grab the Blog page featured image (not the [login to view URL] file the [login to view URL] file).
<? if ( is_home() ) :
$img = wp_get_attachment_image_src( get_post_thumbnail_id( get_option('page_for_posts') ), 'full');
$featured_image = $img[0]; ?>
<div style="background-image: url('<?php echo $featured_image; ?>');" class="header-background">
<header class="title-content">
<h1 class="entry-title" itemprop="headline"><? if ( is_home() ) echo 'Blog'; ?></h1>
</header>
</div>
<? else : endif; ?>
I am ready to do this project for u, I can assure you that our work will be guaranteed satisfactory, if I failed to provide what u were looking i won't ask for any money!! I can assure you that u won't feel regret by choosing me. Please give me a chance and i won't disappoint you.
Here is the Deal: I won't ask any money until project is complete u don't even need to assign the project
$25 USD σε 1 ημέρα
5,0 (25 αξιολογήσεις)
5,0
5,0
10 freelancers δίνουν μια μέση προσφορά $25 USD για αυτή τη δουλειά
First, I am sunsoftpro, I from VietNam.
Nice to meet you!
I have read your description and been interested in your project.
I'm ready to discuss and do hard working so that complete great job.
Please discuss requirements and terms before awarding the project.
Hi,
I can start right away and make the changes as required by you and put the if statement in correct place as needed.
Thanks & Regards,
Vineet
Om Technologies
I have 5 year experience in Wordpress and PHP, HTML, HTML5, CSS, CSS3, Javascript, jQuery, SQL, SEO (Search Engine Optimization) and Optimiz Wordpress to make its faster loading and safe.
Hi there,
I think I'd be a perfect fit for this project! I've recently graduated with a first-class degree in Computing and Management and have vast ranges of experience in producing websites.
I am very competent in HTML, PHP, JavaScript, JQuery, CSS, and many more web-based languages. I am also very competent with WordPress and Drupal - should your project require any CMS-based support.
I look forward to hearing from you!