Thank you in advance!
Best Regards
Matthew
I have two divs on my homepage that are using the “display: none” CSS to be shown only when the site is mobile size – the code woks fine in Chrome but both Firefox and IE are ignoring the command and showing both versions (mobile and desktop). Does anyone have any ideas why this only works on chrome?
https://www.sportschiropractoreugene.com/eomsite/
]]>I have this:
<script>// <![CDATA[
jQuery(document).ready(function(c) {
$('.alert-close').on('click', function(c){
$(this).parent().fadeOut('slow', function(c){
});
});
});
// ]]></script>
in the footer and it is supposed to use the div “alert-close” to close the parent div which is a div containing a banner ad
I just need a simple way to get this script into the footer where the banner ad resides
Any ideas? Is there a simple way to drop it into the footer that doesn’t involve registering scripts and messing around in functions.php?
Thanks in advance
]]>I’m trying to hide some DIVs using the
@media (max-width: 760px) {
.PLEASE-HIDE-THIS-DIV {
display: none !important;
}
but I think WPtouch is overriding my theme CSS.
Please help me figure out how to hide some of the DIVs on mobile and display some others instead.
Thanks in advance
https://www.ads-software.com/plugins/wptouch/
]]>I’m fairly new to modifications on wordpress but had some moderate success with problems searching through the forums, so thanks.
I am working on https://blueindiya.co.uk and I want to remove the div’s for crumbs and title-wrapper ONLY on the home page. How can I do this?
I managed to get some code to hide the actual title “home” but can’t figure out a way to hide the divs.. not much of an expert with code.
Thanks in advance for any help.
]]>I’ve got a template for a website that I’m making, however not all the products that I sell have text for every single field. My php is not that great so I’m looking for a way to hide a fairly large div that contains an image and some custom field text.I know the basic structure but my knowledge of all the synax regarding the quotations and double quotations is really poor. This is the div that I need to hide if the custom field ‘answer_text’ is empty, but display if it contains any text:
<!--MODUAL BOX-->
<div class="modual_box">
<div class="modual_box_icon">
<img src="<?php bloginfo('template_directory'); ?>/images/faq_title_icon.gif" />
</div>
<h2>Frequently Asked Questions</h2>
<p>
<?php echo get_post_meta($post->ID, 'answer_text', true); ?>
</p>
</div>
<!--END MODUAL CONTAINER-->
<div class="divider">
<div class="dark">
</div>
<div class="light">
</div>
</div>
<!--FAQS END MODUAL BOX-->
———————————————
]]><script type=”text/javascript”>
<!–
function toggle_visibility(id) {
var e = document.getElementById(id);
if(e.style.display == ‘block’)
e.style.display = ‘none’;
else
e.style.display = ‘block’;
}
//–>
</script>
i’m working at a theme, and i got some problems..
my code problem:
<div id="middle">
<?php $description = get_post_meta($post->ID, 'right', true); ?>
<?php echo $description ?>
</div>
Is there anyway to hide the whole div “middle” if there is no content posted in the custom field ‘right’?
]]>Is there a simple way to hide everything within a div in the excerpt??
I regularly use divs to contain images and their captions. In the excerpt the images are ignored but the captions come across which obviously kills the context of the caption (and the flow of the excerpt).
Cheers!
]]>