This is going to read like an extremely silly and novice question.... But I cannot seem to work out what is wrong with my code.
I want to have my menu links at the top the page link to different sections within the same page. I have read up on a few various topics including How do I link to part of a page? (hash?) but I just can't get it working.... Any help would be great.
If it helps I am building this on codepen.....not sure if that makes any difference.
The code I am using is:
Services
<div id="services><h3>Our Services</h3></div>
A double quote is missing at the end of services.
<div id="services"><h3>Our Services</h3></div>
Syntax highlighting is your friend !
Related
I understand that inputting should mark an anchor on a given page but I don't know how to identify the template for sections on the home page. I know that I can modify the homepage in the template "index.liquid" but I don't know to edit the specific sections uploaded to the homepage. I have no coding experience so any guidance on how to identify the liquid file from which the section of a page can be modified will be a huge help.
Thanks!
First off, welcome to StackOverflow!
You're right that the index.liquid is going to be where the "homepage" lives, but all the content that is added to that will be added from the Customize editor.
As far as where to access the sections specifically... if your theme has sections enabled -- which I'll assume that it does -- there should be a folder labeled Sections with all possibilities available in your sidebar. It would be under Templates and above Snippets.
Then just look for the {section}.liquid that you have in question -- it might take some Sherlock Holmes investigation to find the specific one you want -- and add the anchor tag that you want to add.
Some examples of some names of liquid files that you'd find on the homepage are as follows:
featured-blog.liquid
featured-product.liquid
slideshow.liquid
If you have any further questions please feel free to ask and expand on what it is you need - but I just wanted to help point you in the right direction.
Especially if this is your first time reaching out for help on StackOverflow!
I am making a online website with hints for a game i made using HTML and i want the user to be able to use a drop-down-menu to select what level they would like to get a hint of so the other levels won't be spoiled. Online i found some articles talking about
<select>
and
<option>
But i could not find any explanation or example of creating the end result i am hoping off. I am (very, very, very) new to html and other coding so if the answers could be explained in a full size html and not using hard terms, that would be greatly appriciated.
If anyone knows how this works and could explain this to me please leave an answer down below.
(Sorry for bad english, I'm Dutch.)
EDIT:
Using JavaScript is not a problem by the way.
Javascript is needed to accomplish this. Drop-down menus are not something that can be created with plain html.
I am making a website which has a blog, however I do not know how to make it so that only a snippet of text shows (say the start of the article) so that users can click on "read more" to open that particular article.
Obviously I could do this by putting the first few lines in HTML, with a "..."
and linking it to a page with the full article, using tags etc.
But, is this the correct way?
I don't know what I should be searching for so therefore I am not finding much information, just lots of wordpress stuff and I am using bootstrap and Less.
I haven't put my code as this is just a general question, I do not have a piece of code I am needing help with, just would like to know how this is done and/or a link to a good explanation as I am pretty new to this.
Thanks!
You should take a snippet of your page and use it for this purpose,it will help you in seo if you can use that in meta tag too to better index your page and hence better search result will be displayed .
I have a simple html/css-only static website on which I would like to add a blog. Comments and RSS aren't necessary.
Now, how do I do that, without having to write all my entries in pure html?
My website consists of a vertical menu and an area to the right of it, where all the content goes on each page. I would like a blog inside that area on the blog page, so a blog on a separate page with its own layout is not what I'm looking for.
Googling this doesn't really help me much since the majority of the hits are on sites offering blog services.
Thanks in advance, I hope I'm not being too difficult. Please leave some feedback on my question if you think there are things I should have tried out before asking.
If i understand what you want the answer is that ist is not possible in pure html and css. With only Html and css you can not make a blog (if you dont want to edit the source everytime you write an entry and have to make a new file for each entry and so on).
You need some code (php or so) that is able to store and load the entrys into your site.
Html and css are not meant to make things working. With Html you define the elements so that they are structed and then with css you "style" your work. But for the task of a blog (i think you want an editor for the text on the site, the ability to edit, delete, more than one site and so on) you need something like php or aps.net that is able to "interact".
I am a college student trying to create a website for my professor. Since I have no background in computer science, I opted for iWeb, and I have run into some problems.
While iWeb is sufficient for most of our purposes, we would like to integrate a drop down navigation bar that requires an external code. I found a program (Sothink DHTML) that helped me create the code for the bar, but I do not know how to insert it into iWeb (I have been editing the HTML on Dreamweaver, since it does not allow me to do it on iWeb).
So far, I have been able to insert the code at the appropriate place (by putting a tag like "menuhere" on iweb, and search for it on HTML and replace the word with my code). Every time I publish the site, however, iWeb rewrites the code and the navigation bar is gone.
Could someone please help me? Thank you SO MUCH for your help in advance! :)
With iWeb, you need to publish the site to your disk, open the appropriate HTML file that it generates, and paste your HTML code where you want the navigation bar to go. A good way to know that is to put some text where you want it (i.e.: NAVBARGOESHERE) and look for that little bit when you add the code. Just a simple little trick, but you can't do it right from within iWeb (Apple slaps your hand like a kid going for a cookie jar).
Hope this helps!