Categories
Mastering Development

Can’t build a html/css inline form

I’m trying to build an inline forum in wordpress with html and css. I have a problem because the form doesn’t appear inline way but in a normal one, here you find the codes: <!DOCTYPE html> <html> <head> <meta charset=”utf-8″> <meta name=”viewport” content=”width=device-width, initial-scale=1.0, shrink-to-fit=no”> <title>newsletter</title> </head> <body> <div class=”newsletter-subscribe”> <div class=”container”> <div class=”intro”> <h2 […]

Categories
Mastering Development

Missing leading hour zero on my digital clock

I tried to add the zero in front of the hour if hour is less than 12, but it only works on the minutes and seconds. I was not taught ternary yet so I can’t use that as an option in my code. I tried everything I could think of without using a ternary. I […]

Categories
Mastering Development

How do I make my website stack on mobile device?

So at some point in making my home page, I had everything stacked nicely on mobile. Somewhere along the way (I think after adding a navbar and messing around with my overall code) my site on mobile no longer stacks nicely and is now a jumbled mess. I’m relatively new to CSS, and while I […]

Categories
Mastering Development

Webview randomly does not readjust after orientation change on iOS

When change orientation of iOS device the contents of Webview don’t always adjust to new orientation. It cuts off to what seems to be width of the space that it occupied in previous orientation. Screenshot below On orientation change I call orientationchange event evalJavascript(“var e= document.createEvent(‘Events’);” + “e.initEvent(‘orientationchange’,true, false); document.dispatchEvent(e)”); In HTML I have viewport […]

Categories
CMS Development Wordpress

Looping through dummy posts and showing them in the main index.php

I’m following a course in WP, fairly new to php but i have some experience with javascript, bootstrap css and html. Currently I’m trying to loop through all the dummy posts that I imported as XML file from https://codex.wordpress.org/Theme_Unit_Test But currenty I’m getting only one “home” page when i view the site. I’m working with […]

Categories
Mastering Development

JavaScript “keydown” works incorrectly

I am learning JS and trying to make a “terminal” in a browser. The only thing I need right now is to display a key that was pressed. For example, user presses “k”, “k” displays on the screen, user presses “d”, “kd” displays on the screen. That’s how should it work. But in my case, […]

Categories
Mastering Development

How To Stop Javascript Menu Underline from going to Dropdown Box?

Hello I created a menu underline in javascript. How do I stop the underline from going on the dropdown menu links? The problem is when I move the mouse out the menu and you still see the line. Please let me know what is the best way to fix this. Thank you so much. https://codepen.io/rubenjr005/pen/ExjQdjw?fbclid=IwAR1iXxZro17fFRKXmWKmi4N6sj0d_mRL6g4-MeVNaHip4IvUYM4YtCGJDPc […]

Categories
Mastering Development

navbar is scrolling automatically when clicking an gallery image

so i have an image gallery which is working fine but whenever i click on gallery image suddenly navbar scrolls automatically. i don’t know why this is happening. once i inspected the elements and what i have found is body is automatically getting class=”baguetteBox-open” class. i think that this could be a problem. how do […]

Categories
CMS Development Wordpress

Preparing HTML source code

I wonder that’s way to get HTML source code without using file_get_contents() function and as a respond get string with whole content just like “show source code” on published page: <!DOCTYPE html><html class=”html__responsive html__unpinned-leftnav”><head><title>Ask a Question – WordPress Development Stack Exchange</title><link rel=”shortcut icon” href=”https://cdn.sstatic.net/Sites/wordpress/img/favicon.ico?v=254234ed340f”><link rel=”apple-touch-icon” href=”https://cdn.sstatic.net/Sites/wordpress/img/apple-touch-icon.png?v=bfad0b4f9cc5″><link rel=”image_src” href=”https://cdn.sstatic.net/Sites/wordpress/img/apple-touch-icon.png?v=bfad0b4f9cc5″><link rel=”search” type=”application/opensearchdescription+xml” title=”WordPress Development Stack Exchange” href=”/opensearch.xml”><meta […]

Categories
Mastering Development

Pseudo and Adjacent Sibling Selectors

I am trying to get my menu to display when my toggle checkbox is selected however, it will not. I understand why in that my .menu-container is not a sibling of my toggle element however, I do not know how to get it to work without taking my toggle out of the div so my […]