Hello my boss bought a theme for magento called megatronics
Now I have followed the manual precisely, somehow I'm having problems with some of the static blocks. They are displaying just plain html code like this http://i.stack.imgur.com/F9wch.png
I don't know how to fix have googled with every possible tag I could think but no results.
I Would appreciate to have help from you guys thanks
nevermind I put the theme html code in the wrong WYSIWYG view and ended with being replaced by htmlspecialchars code and thats why it did display html code =)
Related
I'm new to this forum and in overall programing. recently I was searching for some info on .bat files and I came up with this microsoft page. I wanted to see if the code would reveal how old it was (because it does look old) and instead I found something that I find strange:
there was an html tag inside another html tag.
the html tags are highlighted in red
what does this do/mean?
thanks in advance for any replies.
HTML Frames
https://www.tutorialspoint.com/html/html_frames.htm
Basically, you can load a html file inside a frame. That's why you see 2 html tags.
Give this a good read.
Tldr; dom encapsulation, create templates for js access without rendering the content, some other cool stuff
https://www.html5rocks.com/en/tutorials/webcomponents/shadowdom/
That's <iframe>. It's a tag which allows you to include other website on your website by using this tag.
You can read more about that here http://www.w3schools.com/tags/tag_iframe.asp
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 !
I'm building a website in Rails after not having used it in a very long time, a small part of the site will be a simple blog structure for news. I started with the basic post/view structure that rails generates, albeit altered a bit to make it a little more specialized. Everything is working fine except one error that I keep running into, within posts I need to be able to create links and images (duh) but just throwing html into my posts means they wont render and the html tags just show up (e.g. stuff etc) and the same goes for ruby tags (which I assumed would be so since its post-parse when it is being posted. I assumed this was because rails was sanitizing the posts when they were being created somewhere along the line but couldn't find any code that was doing this... I'm sure someone has run into this problem before but I can't find anything about this anywhere, any help would be great!
Thanks
This is most probably due to rails escaping HTML tags for safty. You could use raw method to overcome this
Ex: <a htef='http://google.com'>google </a>
<%= raw("<a htef='http://google.com'>google </a>")%> #will render the hyperlink
HTH
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 feel like this should be easy, but it seems to be stumping me.
I have a database field that contains HTML. For instance, the field may contain the following:
<html>
<p>This is HTML from the database.</p>
</html>
Now, all I want to do is render this HTML onto the page. Instead it is displaying the actual HTML markup.
I am sure this is simple, but I have been searching around for a while and have yet to find a solution.
Thanks in advance for any help! Be easy on me:)
Try
Decoded
#Html.Raw(HttpUtility.HtmlDecode(Model.YourHtmlContent));
Unenconded
#Html.Raw(Model.YourHtmlContent);
if you're using razor views use
#Html.Raw(model.foo)