I'm building a theme for tumblr and the {HasPages} doesn't seem to work properly - themes

I've put the HTML draft of the theme so far, with minor CSS edits.
Currently I have all the block posts and everything else that's essential to a tumblr theme but I can't seem to get the {HasPages} block to work properly.
I've tested it on a different tumblr, also. There are pages created and I already have provided some basic CSS for it just in case. But there isn't anything showing up.
Has anyone has this problem and if so, is there a solution I'm missing? The code to display the pages is included.
{block:HasPages}
<ul>
<li>Home</li>
{block:Pages}<li>{Label}</li>{/block:Pages}
</ul>
{/block:HasPages}
Also, is this a valid web masters' question. I'm not sure.

I just had this issue: a link to a page I created didn't show up.
I solved this by checking off "Show a Link to this Page" in the Page options. To find this:
Go to tumblr.com.
In the top navigator click the gear. This is where the settings are.
On the side, click on the blog you want to customize.
A customize button should show up beside the name "Theme". Click on this button.
Now your blog will show up with a Customize panel. In the Customize panel there should be a Pages section. Click the Edit button beside the page and a window will pop up.
You can find the "Show a Link to this Page" option in this window.
Let me know if you need any clarification.

As far as I can see your code is right. Have you clicked the 'show a link to this page' checkbox, which is at the bottom of the page edit popup? I bet that's it... :)

I have also been having this problem. However, everything works correctly on my actual page, even though the theme editor does not appear to be aware of the block on my custom theme, nor does the theme preview seem to be aware of the pages tagged to show.
Have you tried saving your theme and checking the links on the live page?

Related

Django-cms page blank even after adding text plugins

Okay so I was able to do the ff:
Install django-cms on and show the "welcome page"
Go to admin page and choose a template.
Add a page
but when i try to add a text plugin to a page and preview it. The page is still blank and it does not even show an error.
WHAT COULD BE THE PROBLEM?
UPDATE: When i use the front-end editor "edit mode on" I am able to add plugins. That's weird
I had a similar problem. I eventually realised that it was caused by my failure to click on the 'publish' button.

Add to cart button is not working

Add to cart button is not working.
Is this due to any jQuery conflict.
I am not using any custom jQuery for add to cart button but had used many extension which had jQuery.
On clicking add to cart button, no action no effect is performed, even nothing is displayed in firebug console.
Can any one tell me how to debug this.
Have you attempted switching on the default template for Magento to see if it could be something in your custom theme? Have you attempted in another browser?
I have most commonly seen the "add to cart" button cease if there were a jQuery conflict or if the button class/name had been changed.
Not sure if you're on version control but if you have migrated the site, there is a possibility that some files may have been left out. If you right click > inspect, are you getting any 404 errors?
Again, we would have to see the code (and possibly a link to the site) in order to accurately diagnose.

iframe tag doesn't work in magento

If any one can help, I would be so grateful. I have spent 2 days scouring the internet for an answer and tried every option I could think of. Here is the problem.
On my site (www.naturevite.net/nature-vite/), all the product pages have a "supplement facts" section. In the section, it displays the nutrition facts. I have all the nutrition labels as .html files. So I added the following iframe to my supplement_facts description area:
<iframe src="http://www.naturevite.net/nature-vite/media/catalog/product/facts/WWSNPPBR0012YOGBBR.html" frameborder="0" width="500" height="900">/iframe>
Now the strange thing is that NOTHING appears BUT if I just click on the WYSIWYG editor, open the popup window, don't change anything except just click submit, the html file opens perfectly.
This wouldn't be a problem except that with 2000 products, I have to go in and do this for each one.
Any ideas guys.
Oh and I tried adding the extend iframe code ('iframe[src|style|width|height|scrolling|marginwidth|marginheight|frameborder],style,script'") and it doesn't workto setup.js file and it didn't work. I also tried disabling the WYSIWYG from configuration and attribute and that didn't work.
I am using magento 1.7.0.1

Remove "componentheading" from homepage - Joomla!

I'm working on a site in Joomla! and on the homepage, at the top of the article, it comes up with a h1 of the website name. The pagesource says (Note it's not the article title.)
Any idea how to get rid of it?
Thanks,
Steph
You can set this h1 tag not to display via the Parameters - System section of your Menu Item Manager screen in administrator ... this page has a nice depiction of the steps.
It's so simple
Just do the following :
Login to the Joomla Administrator Interface
Go to the Menu Manager
Select your Menu
Select your Menu Item (Home Menu)
On the right hand, Click Parameters (System)—> and in the *Show Page Title—->*Just Select No.
That's all.
This is not the desired solution, since many people, (including myself) actually need to be able to Set/Override the page title (That Appears in the Browser’s Title bar), and setting Page Title to no here will also remove the functionality to Configure the Browser title (which is important for SEO among other things).
Anyway, I have searched and not been able to find a fully correct solution via CMS or PHP Code. The closest solution which is not fully perfect, but unlikely to cause significant (if any) negative effect on your site is through Javascript (Example is JQuery).
jQuery(document).ready( function($) {
$(‘.componentheading’).empty();
});
This can also be done is JS with no JQuery. When I find a better method of doing this I’ll let you know.This should actually be done by removing output from a template file.I don’t know which one yet. When I do, I’ll post it…
When setting the page title not to show in the menu item as stated in other answers, this will not stop the text entered in the page title box being used as the browser title, it will just stop it being shown in the page.
Using javascript to remove it is not a good idea.
1. It will only work for browsers with javascript enabled
2. Search engine spiders will still see it. As the component heading for articles is 'articles' by default it will see all your pages with the same h1 tag.
Just turn it off in the menu item and enter your browser title in the text box above.

Keep Firefox sidebar links in the sidebar

I've created a bookmark in Firefox that links to a hosted web application I've written and displays the application in the sidebar using the "Load this bookmark in the sidebar" option.
When the application appears in the sidebar and I click links there, those links open in the current Firefox tab rather than staying in the sidebar. I would like the linked page to appear in the sidebar.
I'm hoping there's a simple solution, like setting the default target via a base tag, but I can't find a reference that gives me the information I need. It would be useful if the solution does not limit the application to the sidebar exclusively, and still lets the application run full-window.
I think all you need to do is link, or add target="_self"
This may be more a potential workaround than a real answer, but you could try using javascript to change document.location to the new URL. Something like:
<a href="javascript:document.location='http://whatever'>click me</a>
This would use the same 'window' object to display the new page and should load in the sidebar.

Resources