Jump to content

simona6

Members
  • Posts

    146
  • Joined

  • Last visited

Everything posted by simona6

  1. Is this the answer: .grve-logo .grve-wrapper img { top: 0%; } .grve-logo .grve-wrapper { top: 0%; }
  2. Sure, but how do you remove one, when it is set in the Theme's CSS? You can usually only 'reverse' a rule such as: top: 0px; Or with an 'important' in there, but doubt that's needed.
  3. Ah yes I see it. So I need to add those two rules in my custom CSS - but oddly, how do I revert -50px? Do I just add a 50px top instead??
  4. I can see you've outside a Class in the CSS, and one other sectin below that. Not sure what you are guiding me toward.
  5. Sorry not with you. What should I highlight, and then remove or change?
  6. UK here so signing off for now. If you can see the CSS causing it, so i can just shift it up, it would be appreciated. Whatever I alter, seems to change the size of the logo. OR shift the whole block down, rather than just that bordered bit. As I say, doing it via the UL of the mega menu has place it OVER the DIV, so the problem has gone. But it's not the most ideal solution. So if you can spot one - thanks.
  7. Yes, but couldnt' see anything to close it up. I have since found the Mega Menu CSS, and put a z-index of high value that puts a plaster over the problem. But can't find a way to just shift that square... UP. apparentrly it's there to centre the logo, but why that has to shift down, I don't know.
  8. Screenshot attached to show CSS highlighting the issue area.
  9. On our own website we noticed the link of the Logo is half way down the image, so when you have the popup menu, if you click just in the wrong place you go to to the homepage. If you visit our website: https://www.79design.org.uk, in Firefox, outline block elements and you see a DIV or A tag that is half way down the logo on the top left. and it protrudes below the logo. I've no idea why any designer would do that (this is a WP theme), and no idea how to correct it. Any help would be appreciated.
  10. Yes i should have added this here. their shop has % instead of weight, and in the cart it still shows 100kg rather than 100%. For some reason, Wordpress's logo translate won't change that. It will change what shows in the Dropdown in Woocommerce, but not the front-end "you have 100kg in your cart" text. So thought i could simply hide the 'kg'. Or the 'g' if it is just grams.
  11. I have a string in a TD tag that says "100 g". The 'g' is grams, but it's not in it's own Span, so I need a way to find the 'last character', and then hide it in CSS. I can see how to do ::first-letter, but there doesn't seem to be a way to do Last-Letter. Is there?
  12. I've been trying to make this happen for the past few hours, and failing miserably! I have a row of four Div columns. In each one is a DIV in a circular shape, and below that, is a H2 tag, with it's own class. I have assigned a Class to the row, and tried it with one to the column too, for good measure! I want to hover over the H2, and make the circular DIV light up a different colour. <div class="grve-background-wrapper"></div></div><div class="grve-section grve-fullwidth-background grve-bg-none grve-column-has-gap grve-column-gap-40 green-circle-hovers"> <div class="grve-container"> <div class="grve-row grve-bookmark"><div class="wpb_column grve-column grve-column-1-4 grve-tablet-sm-column-1-2 grve-mobile-column-1 green-circles-col"> <div class="grve-column-wrapper vc_custom_1595694920324"><div class="grve-element grve-box-icon grve-align-center grve-medium home-circle-minus grve-with-shape" style=""><a href="#" target="_self" class=""> <div class="grve-wrapper-icon grve-simple grve-circle grve-bg-primary-2"><i class="fas fa-mobile-alt grve-text-white"></i></div> <div class="grve-box-content"> </div></a></div><div class="grve-element grve-text vc_custom_1595697474860"><h2 class="home-icon-minheight" style="text-align: center;"><a href="/website-design">Website Design</a></h2> <p style="text-align: center;">text here</p> </div> </div></div><div class="wpb_column grve-column grve-column-1-4 grve-tablet-sm-column-1-2 grve-mobile-column-1"> <div class="grve-column-wrapper vc_custom_1595693634238"><div class="grve-element grve-box-icon grve-align-center grve-medium home-circle-minus grve-with-shape" style=""><a href="#" target="_self" class=""> <div class="grve-wrapper-icon grve-simple grve-circle grve-bg-primary-2"><i class="fab fa-wordpress grve-text-white"></i></div> <div class="grve-box-content"> </div></a></div><div class="grve-element grve-text vc_custom_1595693720215"><h2 class=" home-icon-minheight" style="text-align: center;"><a href="/wordpress">WordPress Services</a></h2> <p style="text-align: center;">text here</p> </div> </div></div><div class="wpb_column grve-column grve-column-1-4 grve-tablet-sm-column-1-2 grve-mobile-column-1"> <div class="grve-column-wrapper vc_custom_1595693652463"><div class="grve-element grve-box-icon grve-align-center grve-medium home-circle-minus grve-with-shape" style=""><a href="#" target="_self" class=""> <div class="grve-wrapper-icon grve-simple grve-circle grve-bg-primary-2"><i class="fas fa-shopping-basket grve-text-white"></i></div> <div class="grve-box-content"> </div></a></div><div class="grve-element grve-text vc_custom_1595693727850"><h2 class="home-icon-minheight" style="text-align: center;"><a href="/ecommerce">ECommerce Design</a></h2> <p style="text-align: center;">text here</p> </div> </div></div><div class="wpb_column grve-column grve-column-1-4 grve-tablet-sm-column-1-2 grve-mobile-column-1"> <div class="grve-column-wrapper vc_custom_1595693662249"><div class="grve-element grve-box-icon grve-align-center grve-medium home-circle-minus grve-with-shape" style=""><a href="#" target="_self" class=""> <div class="grve-wrapper-icon grve-simple grve-circle grve-bg-primary-2"><i class="fas fa-search grve-text-white"></i></div> <div class="grve-box-content"> </div></a></div><div class="grve-element grve-text vc_custom_1595693735199"><h2 class="home-icon-minheight" style="text-align: center;"><a href="/seo">SEO Services</a></h2> <p style="text-align: center;">text here</p> </div> </div></div></div> </div> This is the CSS to try and get it working. .green-circles-col h2:hover .grve-wrapper-icon.grve-simple.grve-circle.grve-bg-primary-2 { background: #000000; } I won't bother with all the CSS that styles the rest. It's just hovering over the H2, I want the circular 'grve-wrapper-icon' t change colour from its default 'primary-2'. I have made that change when you hover over the circle, but not over anything else. That said, I did manage to make it work when you hover over the DIV, but not the H2..... and that's what's thrown me.
  13. "DUPLICATED VALUES TITLE TAGS" For / and non-slash.
  14. It's saying we have duplicate Title Tags, for the normal and / version of the same page.
  15. A Wordpress website has trailing slashes, and all is fine. But for some reason SEO software sees the homepage with and without the /. Causing duplication. Not all SEO software sees it. What is the HTACCESS code to add, to enforce, only on the homepage main domain URL, NO trailing slash? Thanks
  16. Hi there. Not sure if anyone here can help. We are on a Trial with GCH, but this morning we have severe issues with our database. Some pages load a bit, but mostly they don't. And if we try to get to wp-admin, or the hidden admin URL, it says there is an error establishing a database connection. When we go to the site's phpmyadmin and enter the details found in our wp-config file, it says there is no directory. Does anyone know a fix for this, such as a GCH restart or similar? GCH hosting has NO Tech support at the weekends, unless you pay a lot of money.
  17. I had someone ask me today about this. Should you tell the world about your client list, for fear of others checking the, and 'cold calling' them? We know of a company in the London area that provides high-end products to some big names, both on the high street and off it. While they do articles on their website about certain work they did for a company, they don't have an actual 'Portfolio' list. Part of this reason is to stop others trying to 'muscle in'. On one part of the argument it can help. Particularly if what you do is done by many. So it's good to say Company A and B both chose us!! How exciting. And from a Coding point of view, it gives those companies a good back link. But on the other side, do you want those companies to be cold called, to ask about a cheaper or (how they see it) better service? If the company in question doesn't supply pricing, it does put up part of that barrier though. Just keen to learn, in the world of Design and Hosting, what's the view on this. Should companies show their client list (or some of them), or should they no, and perhaps appear a little arrogant. I for one haven't found any design company that doesn't. Cheers.
  18. Resolved. It was the server setting in PHP. The Memory was left blank, and the File Uploads was on OFF for some bizarre reason. An update must have set those 'back end'.
  19. if (isset($updatephoto)) { define ("MAX_SIZE","5000"); function getExtension($str) { $i = strrpos($str,"."); if (!$i) { return ""; } $l = strlen($str) - $i; $ext = substr($str,$i+1,$l); return $ext; } $errors=0; if($_SERVER["REQUEST_METHOD"] == "POST") { $image = $_FILES["profilephoto"]["name"]; $uploadedfile = $_FILES['profilephoto']['tmp_name']; if ($image) { $filename = stripslashes($_FILES['profilephoto']['name']); $extension = getExtension($filename); $extension = strtolower($extension); echo "test here $uploadedfile"; If I add the final line in this grab of the code, it does not show anything on screen. So it's as if $_FILES["profilephoto"]["name"] just isn't being seen.
  20. What errors? If you mean the one I have posted, I don't know what the fix is, and that is the issue here.
  21. <form method='POST' action='' name='signuprocess' enctype='multipart/form-data'> <input type='hidden' name='updatephoto' value='update'><div class='profile-photo'><h2><div class='profile-icon'><i class='fa fa-camera'></i></div> Profile Photo</h2><br/><div class='signup signup-title'><p><b>Please upload a photo of yourself, not your family.</p></div><div class='signup form-field'><input name='profilephoto' type='file' size='15' /></div> <input type='submit' value='Upload'></form> This is the form. It was working up until a few days ago, so I am suspicious of something changing on the server, through some auto update. It uploads the file fine, when running locally. Both are on PHP 7.2.
  22. Yes errors are turned on, but there aren't any. Only those I sent here in the Error Log file. This is an example of the errors, and they are pretty much all like this: mod_fcgid: stderr: PHP Notice: Undefined variable: profilephoto in /var/www/vhosts/site.net/httpdocs/includes/profile.inc on line 253, referer: https://www.site.net/profile
  23. adding photo,Array ( [name] => profilepic.jpeg [type] => image/jpeg [tmp_name] => C:\xampp\tmp\phpB923.tmp [error] => 0 [size] => 152127 ) Hi, We have been using this code for ages, but suddenly for some reason we cannot upload an image using the code below. When we try to Print_r the $profilephoto variable, I get this error. The filename is correct, but what is that [error]?? And how do I resolve it? Oddly it does upload it locally, but LIVE, it won't This is the code. if (isset($updatephoto)) { echo "adding photo,"; print_r($profilephoto); define ("MAX_SIZE","5000"); function getExtension($str) { $i = strrpos($str,"."); if (!$i) { return ""; } $l = strlen($str) - $i; $ext = substr($str,$i+1,$l); return $ext; } $errors=0; if($_SERVER["REQUEST_METHOD"] == "POST") { $image =$_FILES["profilephoto"]["name"]; $uploadedfile = $_FILES['profilephoto']['tmp_name']; if ($image) { $filename = stripslashes($_FILES['profilephoto']['name']); $extension = getExtension($filename); $extension = strtolower($extension); if (($extension != "jpg") && ($extension != "jpeg") && ($extension != "png") && ($extension != "gif")) { echo "Unknown Extension..!"; } else { $size=filesize($_FILES['profilephoto']['tmp_name']); if ($size > MAX_SIZE*1024) { echo "File Size Excedeed..!!"; } if($extension=="jpg" || $extension=="jpeg" ) { $uploadedfile = $_FILES['profilephoto']['tmp_name']; $src = imagecreatefromjpeg($uploadedfile); } else if($extension=="png") { $uploadedfile = $_FILES['profilephoto']['tmp_name']; $src = imagecreatefrompng($uploadedfile); } else { $src = imagecreatefromgif($uploadedfile); echo $scr; } list($width,$height)=getimagesize($uploadedfile); $newwidth=600; $newheight=($height/$width)*$newwidth; $tmp=imagecreatetruecolor($newwidth,$newheight); imagecopyresampled($tmp,$src,0,0,0,0,$newwidth,$newheight,$width,$height); $pic=($_FILES['profilephoto']['name']); $random = (rand()%99999999); $newname="$random"."$pic"; $filename = "images/profiles/". $newname; imagejpeg($tmp,$filename,100); imagedestroy($src); imagedestroy($tmp); }} } $query = ("UPDATE users SET profilephoto =:newname WHERE id =:userid"); $result = $pdo->prepare($query); $result->execute(array(':userid' => $userid, ':newname' => $newname)); echo "<script> window.location.replace('/profile/') </script>";}
  24. Goodness me. Well firstly apologies for the terminology I used. I thought it was a "listener". It does look to be extremely complicated.
  25. Something I have never done, but want to learn the best practice for doing so, is a listener script. Example: one of our websites is in bespoke PHP and has two links that shows if there are any noticeboard 'notifications' or any new 'messages'. Ideally I'd like to show 1, 2, 3... etc as a count of how many are remaining for Messages. So if a new one comes in while they are on a page, that number literally changes while they are on the page. I assume this is with Ajax, and not straight forward. I don't know any DOM code or Javascript. But would appreciate some help please. Simon
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.