Link from external to specific part on a one page site - html

I have built my site based on a bootstrap template. It's a one page site with scrolling but I am currently redeveloping it so that my portfolio pages are separate pages and link back to the homepage. I want to link back to the gallery on the one page part of the site and therefore need to link to the homepage and get it to scroll instantly to the gallery. Any ideas on how I would do this. Site as it was is at www.js-gd.co.uk
Thanks
Jon

You could add an id to the section you are wanting and then have url.com/page#id
If you post the code I will be sure to help you

Related

How do I change the theme of only one page in WordPress

I have an general education landing page in Wordpress, thats needs a new theme. I want to just change that ONE page but not impact any other page. I have a business premium account with Wordpress. Please help, thank you.
You can't change the theme just in one page. To customize that page you would need to create a custom template by creating a template or a file on your server to only affect that page.
Something like:
Page templates
Or:
page-87.php 87 being the page ID
front-page.phpIf the page you want to costumize is the front page
page-landing.phpIf the name of the page is "landing
This might help: WpBeginner

html links & anchoring secondary html page to link back to index and anchored location

I feel like this should be very basic, I've been searching but can't seem to word it well enough for searches.
currently I have 2 html pages, my first index.html page has a navigation that links to itself throughout the entire site.
Home
Services
Portfolio
Contact
all of these section are on the main page (one page layout)
now I have recently added a secondary html page that is accessed via a button in the portfolio section to see a gallery of photos, easily enough I can get to that page via href="portfolio.html"
equally if i want to get back to my home page I can put in href="index.html"
here comes my troubles... What if I want to not only get to the home page, but I want to get to the Services section that is on the home page?
href="index.html/#services" throws error.
Thank you for your time.
Link should be: Services
anchor should be: <a id="services"> ... </a> (HTML5)
well...you're doing well to get into a specific place in the page you need you define id to your element and pass it with the URL. it'll be much easier to see the code itself and tell you what's wrong. try to check that the element has the right id or that you don't call different elements with the same id so the browser can't decide which element you'd like to go to

Regarding WordPress custom homepage

This is more of a process question than coding. I have a custom homepage with logo, menu, footer similar to other pages. But there are few other contents which are different in the homepage, as usual, i.e, a title, a description div, a social links div and a few more, which are only in the home page.
Now the question is, since I want the admin to change this dynamically, how should I easily implement this for the site owner. Should I make a top-level menu named Homepage in WordPress dashboard and add all these meta boxes (with title, description, social fields) on that admin page so that he can fill this in from the back-end or make a custom post-type with the mentioned custom fields? Or should I add a menu under appearance with the relevant fields to be filled.
I am confused about the standard way. I am new to WordPress and just learning. This clarification will help me get a pre-idea. I completed the HTML and now converting the site to WordPress. Just give me a general overview please, nothing detail, I'll get the rest done. I would like to know the difference between the options mentioned above in a nut-shell (what is for what actually) and what is the standard way to add the custom home page fields for the site admin to input page contents easily.
Thanks in advance.
You would need to create a static front page.
https://codex.wordpress.org/Creating_a_Static_Front_Page
Basically you can create a standard page and then from wordpress customizer make that page a front page. Client will edit it from the back end just as any other standard page.

Anchor on single page website

This is an issue regarding, http://www.mccaffreyhautecouture.com/
I am unable to create an external link where the viewer is brought to a specific page within the website. On landing, the viewer must always enter by the landing/main slide page.
This was a purchased template and the entire website is coded in a single index.html file.
My client would like their Pinterest images to link directly to the source or gallery.
Is this at all possible?
I greatly appreciate any assistance.
Thank you,
Stanley Ounarom
It looks like this was written using AJAX to pull in content. The URL doesn't change when nav is clicked, which makes it impossible to link to a specific page w/in the site. The site will need to be further developed to allow for this functionality.
This may help:
jquery ajax history and bookmarking plugin

Static HTML: iFrame Tabs - landing page

I am using the Static HTML: iFrame Tabs app to use to design landing pages for several businesses. I have designed the landing page in html and it works when I click view as fan and view as non-fan. I have selected to display the same HTML for both fans and non-fans.
Accordingly, I selected the option to set my landing page. As a non-fan I see this tab as my landing page. When a fan comes to the facebook page they are forwarded to my wall.
I remember researching this awhile back and it seemed it was a bug that facebook had yet to address. I recently ran into a business page that worked as a fan and non-fan. How is this done?
You will get anyway the wall if you liked once the page. It is a Facebook behavior.
This is not a bug, this is how Facebook works - page fans, when going to your page, are sent to the page wall.
You have to set default landing page for all users in your page settings.
Hope this helps.