I'm using WordPress. The designer put a WhatsApp button that shows on the entire website. Any idea where I can find that snip of code to remove it? I checked the plugins, and I'm sure it is not a plugin.
This is what I see when I inspect the element. Any help please?
<div id="whatsapp_desktop" style="
position: fixed;
display:none;
z-index: 5;
left: 11px;
width: 100%;
height: 50px;
bottom: 40px;
">
<i class="fab fa-whatsapp" style="font-size: 50px;color: #3bc5aa;margin-right: 10px;"></i>
</div>
You must use important:
display:none!important;
Related
I develop Django apps and need to customize standard form for data entry that fit the structure in attached image bellow.
You can also see my current code that "do the job" but would like to know if it is the good way to do that or if there is better practices.
I have define css classes for my fixed heading-title, fixed footer-bottom and for my 2 buttons "Save" and "Cancel"
html
<nav class="navbar navbar-expand-md navbar-dark bg-info fixed-top" style="padding-top: 50px;">...</nav>
<!-- content form for field data entry -->
<div class="box row-full" id="heading-title">
<h3>Nouveau projet</h3>
</div>
<div class='container' style="margin-top:200px;margin-bottom:200px">
<form id="projecteditform" method="POST" class="post-form">
{% csrf_token %}
{{ form|crispy }}
<button id="ajouter_projet" class="btn btn-info .fixed-save" type="submit"
style="width: 100px; z-index:2">Valider</button>
<a data-modal data-target="" class="btn btn-dark .fixed-cancel" href="{% url 'project:index_projet' %}"
style="width: 100px; z-index:2">Annuler</a>
</form>
</div>
<div class="box row-full" id="footer-buttons"></div>
<!-- end content form for field data entry -->
<footer class="page-footer font-small blue fixed-bottom" style="background-color:white; z-index:1">...</footer>
css
.box {
width: 100px;
max-height: 60px;
color: white;
}
#heading-title {
position: fixed;
padding-top: 20px;
top: 100px;
color:black;
background: white;
}
#footer-buttons {
position: fixed;
bottom: 50px;
background: white;
}
.row-full{
width: 100vw;
position: relative;
margin-left: -50vw;
text-align: center;
height: 100px;
left: 50%;
}
.fixed-save{
position: fixed;
bottom: 80px;
}
Thanks for your advices
In css recommended to use the id selector only for JavaScript.
Incorrect:
#footer-buttons
#heading-title
Correct:
.footer-buttons
.heading-title
It is not recommended to use inline styles in html.
Incorrect:
style = "margin-top: 200px; margin-bottom: 200px"
Correct:
.someclass { top-margin: 200px; bottom-margin: 200 pixels }
It is recommended to use the section and header tags.
http://htmlbook.ru/html/section
http://htmlbook.ru/html/header
It is not recommended to use different quotation marks. The code looks dirty.
Use "or '
Correct:
class = "container"
The dot is not needed here.
class = "btn btn-dark .fixed-cancel"
According to what I found django-widget-tweaks is one of the best ways to format django forms
See this
WordPress 5.3.3
Theme: Maison (for architects and interior designers)
WooCommerce 4.0.1
Now I have a display problem of the product single page and the standard gallery that comes with WooCommerce.
On left hand next to the main product picture I already see a small vertical stripe of around 10px of the last picture.
<div class="zoom slick-slide" data-slick-index="3" aria-hidden="true" style="width: 557px; position: relative; overflow: hidden;" tabindex="-1"> <img src="https://URL/wp-content/uploads/2020/04/M-Serie_detail_01-1.jpg">
<img src="https://URL/wp-content/uploads/2020/04/M-Serie_detail_01-1-600x600.jpg">
<a href="https://URL/wp-content/uploads/2020/04/M-Serie_detail_01-1.jpg"
class="nickx-popup fa fa-expand" data-fancybox="product-gallery" tabindex="-1"></a> <img role="presentation" src="https://URL/wp-content/uploads/2020/04/M-Serie_detail_01-1.jpg" class="zoomImg" style="position: absolute; top: -984.452px; left:-1430.05px; opacity: 0; width: 2000px; height: 2000px; border: medium none; max-width: none; max-height: none;"> </div>
I spent hours in trying to solve that issue...has anyone any idea? Lays the problem in the woocommerce slider or do I have to change in the theme settings?
I have a requirement to create an icon as shown below.
I have tried as shown below.
.html
<ion-content padding>
<div style="background:lightblue;width: 50px;height: 50px;border-radius: 50%;">
<ion-icon name="heart"></ion-icon>
</div>
</ion-content>
Plunker is here
Q1: Is this the correct approach to create this kind of icon appearance?
Q2: How can I make it same as above image?
Q3: After that, I need to use that icon any place on any component.If I use margins to center the heart icon, hope it'll not work on any place no? In other words, I need to use it as a single unit.
Hope you'll give a feedback for this.
.heart-icon {
background: lightblue;
width: 50px;
height: 50px;
border-radius: 50%;
line-height: 50px;
text-align: center;
color: #FFF;
}
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<div class="heart-icon">
<i class="fa fa-heart" aria-hidden="true"></i>
</div>
Hope it is what you want to achieve. You can use ionic icon instead of font awesome.
scss
.heart-icon {
background: lightblue;
border-radius: 50%;
color: #FFF;
}
and for HTML
<ion-icon class="heart-icon" name="heart" item-start></ion-icon>
I have created a mobile view for my site, here.
http://105.161.113.68:8080/qualebs/home
username = susan
passord = suzzy
if you login from a mobile device with preferably opera mini, you will notice that clicking on any element even the box around the login page reloads the page. I don't know what is responsible for this. please help.
The css for the containing div containing the profile photo, username, and the status is as follows.
.feedContainer{
display: inline-block;
float: left;
margin-right: 5px;
cursor: pointer;
text-align: left;
width: 95%;
max-width: 800px;
border: solid 1px #f5eabe;
border-top: none;
background: #fff;
}
in the css for the mobile page I add the following style
.feedContainer{
float: none;
width: 100%;
max-width: 100%;
border-right: none;
border-left: none;
margin: 0px;
cursor: auto;
}
There is no Javascript on the mobile view. My problem Is that every element behaves like a link that if you click it reloads the page. How can I remove this.
example feed container for mobile site looks like this
<div class="feedContainer">
<span class="profileImgContainer">
<img class="profileImg" src="img/thumbs/1/1377284547880_1377284934730.jpg" alt="photo"/>
</span>
<div class="feedHeader">
<span class="time">moments ago</span>
<strong>
susan
</strong>
</div>
<div class="feed">
<pre><span class="shorten">Hello guys if you are already logged on here, please let me know what you are seeing</span></pre>
</div>
<div class="feedFooter">
<span class="feedFooterWidget">
0
Comments
</span>
<span class="feedFooterWidget">
<span class="count">
0
</span>
<a class="footerLink" href="like?item=status&itemId=1377338479531&posterId=1377284547880&view=likes">Likes</a>
</span>
<span class="feedFooterWidget">
<span class="count">
0
</span>
<a class="footerLink" href="share?itemType=status&statusId=1377338479531&posterId=1377284547880">Share</a>
</span>
<span class="feedFooterWidget">Message</span>
<span class="feedFooterWidget">Delete</span>
</div>
</div>
I'm sorry for future readers of this question the server was running on a local server and I lost the connection.
you can set pointer-events:none; in the mobile css for the elemenet that is triggering the page reload
The same question has been asked in this post, but the accepted answer doesn't help (me, at least).
I use dojox.mobile.View to display two views that look like this. Everything works fine, except the map container doesn't get displayed correctly. It is shown as a small box on the top page. Do I miss something on the layout file? Thank you!
<div id="view1" dojoType="dojox.mobile.View" selected="true">
<h1 dojoType="dojox.mobile.Heading">View 1</h1>
<ul dojoType="dojox.mobile.RoundRectList">
<li dojoType="dojox.mobile.ListItem" icon="images/icon1.png" moveTo="view2" transition="slide">Go To View 2
</li>
</ul>
</div>
<div id="view2" dojoType="dojox.mobile.View" style="height:100%">
<h1 dojoType="dojox.mobile.Heading" back="View 1" moveTo="view1">View 2</h1>
<div dojoType="dojox.mobile.RoundRect" id="map_canvas" style="width:100% !important;height:100% !important;"></div>
</div>
Update:
<body style="visibility: visible;">
<div id="view1" class="mblView" selected="true" style="visibility: visible; width: 100%; height: 100%; top: 0px; left: 0px; display: none;" dojotype="dojox.mobile.View" widgetid="view1">
<div id="view2" class="mblView" style="visibility: visible; width: 100%; height: 100%; top: 0px; position: relative; left: 0px;" dojotype="dojox.mobile.View" widgetid="view2">
<h1 id="dojox_mobile_Heading_1" class="mblHeading mblHeadingCenterTitle" moveto="view1" back="View 1" dojotype="dojox.mobile.Heading" style="" widgetid="dojox_mobile_Heading_1">
<div id="map_canvas" class="mblRoundRect" style="width: 100% ! important; height: 100% ! important; position: relative; background-color: rgb(229, 227, 223); overflow: hidden;" dojotype="dojox.mobile.RoundRect" widgetid="map_canvas">
<div style="position: absolute; left: 0px; top: 0px; overflow: hidden; width: 100%; height: 100%; z-index: 0;">
Firebug logs
I had similar display problem with Dojo mobile + Google maps api version 3.
Simons solution did not work, but there was another way.
I don't create new topic, just give you this simple hint: Always check if Google maps loads AFTER DOM (for example using require(["dojo/domReady!"], function(){ ... })
the mobile view your using for the map view only has height:100% set where as the example has width + height 100%.
This can cause issues inside the div used for the map as its not picking up a width correctly. (i've seen a similar issue like this before, could be something else though)
EDIT:
Nothing pops out to me. Have you tried maybe using script to modify it ? something like:
var div = dojo.byId("map_canvas");
div.style.height = window.innerHeight+"px";
div.style.width = window.innerWidth+"px";