Dreamveawer not showing preview (empty page) - html

I've downloaded full calendar from here. Then I've added site to dreamveawer, with root folder being fullcalendar-2.9.1. I wanted to work on demos inside this folder, but dreamveawer is showing empty page when I am opening demo sites. If I pick preview in browser, than page displays normally. Only inside dreamveawer I see only white screen.
First picture: site that I created
Second picture: code - design view of one of demo pages

You're trying to run php script through without a local server.
You'll need to add one to your system (perhaps xxamp or wamp) and configure your localhost with dreamweaver. You'll find a tutorial on adding localhost to dreamweaver here WPTricks adding localhost, It's using wordpress in the example but with remain the same for your setting inside dreamweaver.

Related

Everything on my pages works fine on VScode's live server but not on local

When previewing my pages with a live server everything works fine.
but when I tried to open my index file from local it didn't show CSS or anything.
and when click on navigation that links to another page it shown "File not found"
first of all, please provide code with your question. Second of all, I had this once happening to me, I fixed it by changing (this is an example) /CSS/style.css to ./CSS/style.css
So you basically put a dot in front of it. Please let me know if this helps.

How to edit the HTML code of just one page of my wordpress website?

So for some pages of my Wordpress website I created a big block of code conisiting many images and links, which I need to change from time to time. Because this was built with a plugin like Elementor manually changing hundreds of images/links would take forever.
If I could edit the source code of just this page I would copy the source code, run it through my script which would change all the links/images in seconds and paste it back in the webpage source code.
If this wasn't clear enough hear is my thought process in steps:
1: Having a webpage with content which can only (afaik) be edited through a plugin like Elementor
2: Instead copying the part with the content from the source code
3: Chaging this source code within seconds through a script
4: Pasting the new source code back into the webpage sp it is updated with the new content
Ok, so it depends on how elementor is storing the images in the image block, chances are that is will be contained in shortcodes e.g. [vietpic]<img src="wp-content/nam.jpg [/vietpic] you should be able to see this by going to the page with these images and then selecting 'Text' on the content editor. The editor will switch from the visual blockbuilding to the code which you can then copy out, run your script on and place elsewhere. Just make sure that you get the whole block, like any containing elements for instance. If this doesn't work out I'd suggest navigating to the page on the frontend, inspecting the element via the browsers inspector then selecting the container, click 'edit as html' then copy out the code. You can then run your script on this source code then paste it into an elementor custom html block.

Post showing img HTML instead of graphic

Why do all new WordPress posts with a graphic or link show the corresponding HTML code instead of the image or link?
When I create a new post I use the visual editor, and I press Add Media, then select a graphic that I have uploaded, and the graphic shows as expected in the visual editor. I then press Preview and the full “img” HTML text shows in the preview window instead of the graphic. When inspecting the Preview window’s img element, it has quotes around the whole img element, thus treating it as text. The same issue happens when inserting a link – the full “a” HTML text is displayed.
This happens for me on the the default install of WP 4.7.3. Installed WP 4.7.3 to a fully patched Windows 7 64-bit PC. Apache 2.4.23, PHP 7.1.3, MySQL 5.7.15 with utf8mb4_general_ci collation (also tried utf8_default_collation). No plugins are active (I only have the 2 default plugins installed). No themes other than 3 default, and Twenty Seventeen is active. Using Chrome 57/Safari/Firefox all do the same thing.
I’ve installed on another Windows PC and get the same issue. If I press Add Media and add the graphic, then switch to the text editor, it shows the “img” element text correctly in the editor. When I preview this text view or publish it, it shows the full “img” element as text just like publishing from the visual editor view. If I manually enter an “a” link element, it shows the full “a” HTML not just the link’s visible text. All these scenarios show the HTML instead.
Restarted Apache, cleared cache, checked all Apache and PHP logs and no errors show in Chrome console.
I found this problem was caused by the filter setting in the php.ini file. From a previous PHP application the following setting was set:
filter.default = full_special_chars
This wrapped the post information in quotes. Commenting out this setting solved the problem.

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.

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.