How to make Index pages look like the rest of a website - html

I have a WordPress site and am looking to add newsletter archives to it.
At the minute, I am downloading the HTML from MailChimp and uploading it to FileZilla. The index page is shown below 1.
When people click the newsletters, they look perfect. However, how can I make the index page match the rest of the website? Ideally I would like to recreate this same directory on the site, without having to manually do too much. Can anyone advise?

You can create a directory page on your current wordpress site and then link the html pages which can be held in a directory under your site's root folder.You can place all the html newsletters on a directory such as:
yoursite.com/newsletters/newsletter1.html
yoursite.com/newsletters/newsletter2.html
and so on...
Now all you need to do is:
1) Create a new page on your wordpress site
2) Go to the editor and create the text necessary - You can use the visual editor on wordpress and do this such as:
OUR NEWSLETTER ARCHIVE:
Newsletter one (link this to: yoursite.com/newsletters/newsletter1.html)
Newsletter two (link this to: yoursite.com/newsletters/newsletter2.html)
Newsletter three (link this to: yoursite.com/newsletters/newsletter3.html)
Now using the above method, you can create a newsletter archive directory that will match your current site's style and still link html newsletters outside your site. and once they click through, they will browse through the newsletters easily.

Related

Creating a plain html home page AMP with WordPress running the other pages

Gday
I like to know how you would go about creating a home page in plain html and have WordPress run the other pages?
The reason is I’d like to create a solely plain html website but I need WordPress for my contact page it has a large form on it and I use a plugin to generate it and forms are a bit beyond my knowledge at the moment to create a contact page myself.
(I have tried creating a template page but then WordPress adds unnecessary code [from plugins ] and makes the AMP invalid)
Honestly I'd try and keep it self contained in WordPress itself.
If for some reason you really want a separate HTML/PHP Homepage, follow these steps:
Add a my-homepage.php file to your /wp-content/themes/ACTIVE-THEME directory
Inside that file put the following code:
Add a new page (Pages > Add New)
Give it a recognizable name like "My Homepage"
In the "Template" selector on the right hand side, pick "My HTML Homepage" and click Publish
Go to Settings > Reading, change Your homepage displays to A static page and pick the page you just made
Now you can add your own code as you see fit. Nothing "WordPress" related will get loaded or hooked in since there's no functions on that file - so you're free to code HTML (or PHP) to your heart's content.
You can see a bit more indepth answer over on WPSE: https://wordpress.stackexchange.com/questions/296592/how-to-use-custom-html-file-instead-of-wordpress-homepage

wordpress url issue html multiple

I have one big problem. I have installed the latest version (4.1.1)of wordpress locally(wamp) in the folder www. I wanted to change my html site's url. I changed my wordpress url and site url from settings -> general with the same name as this locally/wordpress/revenant. When I saved changes, a 'not found' page appeard with error "The requested URL /wordpress/revenant/wp-login.php was not found on this server". Revenant is an HTML site I created. I put this site in wp-content/themes, a folder with the name revenant which has footer.php, header.php, index.php and style.css in it. My first question is how am I going to retrieve and see my dashboard, admin page and second how to load multiple HTML sites with different url's? To manage my site (go to the about-contact page, nav menu ec) in which parts do I have to change my HTML code to PHP? I am a junior developer and need help. And why in settings->reading didn't appear the choice of front page displays? I want to check as ' a static page ' and I can not. Thank you in advance. If you want any code let me know.

How to edit WordPress page's html code

I can't get editable html code behind the page. I want to make some changes to the page. Web site is hosted in the remote server. Someone assigned this task. There is empty editor when open edit page as below image.
Also I added plugin and actived it but can't get the result.
The picture you posted is of the WYSIWYG editor, which is only for adding content to the page.
If you want to edit the layout of the page itself you have 2 options -
Minor page edits to appear across all pages on the site - Go to Appearance -> editor -> page.php and then edit the code to suite your needs.
Large page edits to appear on one or two pages -
Get access to the files
Duplicate page.php with a different name
Edit code
When you go to add a new page you should have an option to pick a page template. Choose the page template you just created.
If you know exactly what you are doing, you can use Chrome "Inspect" feature, and change the HTML of the content inside the WordPress WYSIWYG Editor. After injecting your HTML, click Preview or Publish and your changes will be saved correctly.
In WordPress 5.5.3, you should be able to click the three dots on the top right, then select Code editor. Alternatively, press Ctrl+Shift+Alt+M.

Index page in Joomla

I have made a homepage in Joomla 2.5, and I need my front page to be different then the page made in Joomla.
My best solution then, is to make the front page in pure HMTL, and then redirect to the site made in Joomla. Is this possible? or is there an easier way to do it? for example with a plugin or something?
Create a custom html page and create it an article and then assign this article to front page. In this way you can display your custom html page to hope page of joomla.
Further if you want to remove even the headers and footers of the joomla page for home page this can be done in various ways
Make module positions and display the header and footer in it an
then in admin do not publish these modules for home page
We have
variable in template index.php which give us flags weather this is
home page you can use this flag and put a condition like if this is
home page dont display the header and footer.
Hope it will help you.
I can't really understand your question. If you want to load HTML only use custom HTML module rendered in your homepage
What are you trying to achieve? Without knowing more, I have two thoughts.
a. Joomla uses index.php. A lot of the time web servers look for index.html first. So if you create an index.html file and upload it to your root folder, it will display that first and not read your Joomla! site. If that doesn't work, check your web server to see the order that it looks for your start page. That is a setting that can be changed. (Depending on your hosting situation)
or b. You can set different templates for a single Joomla! site. you could set a different template for the homepage compared to the rest of the site. (I just need to know more on what you are trying to accomplish)
Have a great one.

Can I replace domain.com/images/ to something like #/images/?

Hi I'm making a basic HTML website using Microsoft WebMatrix locally. When I've finished the website I will be uploading it to my web hosting.
Right now I'm using http://localhost:80/ to view my site and I'm using this sort of code...
<!--#include virtual="include/html/menu.html" -->
... to include the menu links so that I only have to change 1 file to change the menu across the whole site.
Here's the problem. The menu links have to have the full address like...
Service
to make sure they work on every page. Not...
Service
I could put http://localhost:80/service/index.html as the full address link and it would work. But, when it comes to uploading the site to domain.com the links would be broken and I'd have to change them everytime I upload a newer version of the site.
Is there anything like this...
Service
... where a sign, for example #, would be whatever domain the site is on?
While starting with http://etc is an absolute path, and starting with ../ is relative to the document in question, starting with / will be relative to the root of your site.
So your example would simply be Service.