wordpress widgetlogic conditional logic is not working for post page - widget

I am just developing a theme under wordpress twentyeleven theme. In that theme I have installed widget logic plugin to show different widgets on different pages. But when I want to show some widgets in post page and made conditional tags for widget logic the widgets are not showing in post page.
I have tried some thing conditional tags like this
is_page('Blog')
is_page('246') // As 246 is the page id of my post page.
I tried all of them but still its not showing.
I had also tried wp_reset_query(); in my functions.php file. But no luck there was.
Update
To make blog page as my post page I have made changes in wordpress settings >> Reading >> A static page >> Post page -> Blog
So can someone kindly help me to solve this? I have already spent a day to solve this. Any help and suggestions will be highly appreciable.

Just try this in your widget conditional
is_home(Blog)
Here is the link http://wordpress.org/extend/plugins/widget-logic/other_notes/
Just check there is_home() -- just the main blog page

try is_page(246) without quotes.

Related

How to show excerpt on home page listing on blogger.com?

I want to show excerpt instead of full post content on the home page post listing on my blog https://florida-psychics.blogspot.com/. I've been searching for solution but can't find any. I remember it can be done in the theme editor but I can't find that solution anywhere. How do I do it?
I tried checking the theme settings but there is no option. I checked the code but can't figure out where to change it.

Best way to redirect?

I got a website made in Wordpress, and it's not finished yet but I want people to be able to only visit a certain link.
Let say my website is: www.mywebsite.com, and the only section finished is www.mywebsite.com/gallery.
Inside the gallery I have several links, that should work. (those links open new pages).
However, if people go to www.mywebsite.com, it should redirect them to www.mywebsite.com/gallery.
I've seen several different redirect plugins, but I'm unsure what would be the best choice.
I want something simple that just works.
HTML meta-tag:
<meta http-equiv="refresh" content="1; URL=http://www.foobar.com/gallery">
PHP header function:
header("location: /path/to/folder");
JavaScript:
window.location.href = "http://www.foobar.com/gallery";
I suggest you to put a file (index.php) into your root folder and write the following in it:
<?php
header("location: gallery/index.php");
?>
But if you have no PHP on your Server you can also use the method with HTML or JavaScript as well.
I hope this helps :-)
Since mwatzer answer seems correct to any website, I would strongly suggest to use a plugin or change your start page by setting your gallery page as home page, WordPress automatically removes scripts inside pages and entries, and if you change your template files, on the next template update they will be gone unless you create a child theme.
Check WordPress Codex here: WordPress changing home page
Or check this plugin: Quick Page/Post Redirect Plugin

Display Tumblr Demo Posts as Sample Posts?

I wondered if there is a way to use the posts that I've put in my Demo Tumblr Theme as the 'Sample Posts' in Tumblr for when someone downloads and installs the theme?
I know that when you install a theme and go to customise it, there is an option to use your 'own posts' or 'sample posts' and I'd like to be able to set it up so that the posts I've used in my Demo for the theme, display instead of the standard ones provided by Tumblr.
Does anyone know if this is possible and/or any tutorials/suggestions on how to go about doing it?
Any help would be appreciated.

How to remove Linkwithin / Related Posts?

I wanted to try out Linkwithin, a widget to show related posts underneath each post, to see how it looks like and stuff. On the Linkwithin website you can install the widget by clicking on a link which directed you to Blogger. I added the widget to my blog.
Now I would like to get rid of it, but on the Linkwithin website it's stated NOWHERE how to remove Linkwithin! So I tried deleting the widget but it wasn't showing up. So I went to the HTML source code and wanted to delete it straight from there, but I simply can't find it...
Does anyone know how to get rid of it, or can find it in the code?
Website is www.wldhrts.com
Many thanks!
You need to remove that widget from your blog. It's the first widget on your right sidebar (just above the search box).
Move to
Blogger >> template >> edit Template >>
Search for 'id='HTML2' it's the widget holding your linkwithin code. You should be able to find code like
<b:widget id='HTML2' locked='false' title='' type='HTML'>...</b:widget>
Remove the whole widget.
you can alternatively set nRelate on your Blog which is way better then LinkWithin.Here is the link of complete post explaining every process step by step. nRelate also offer you to earn some money by showing ads on your Blog or website.
http://sarcaassm.blogspot.com/2014/02/setup-nrelate-widget-to-your-blog.html
it is not always 'HTML2'. it depends upon where you have it. just try to reinstall it from linkwithin site, you will see codes, see what are they, note down on notepad and then search them in tempelate and remove. that will only work super fast. you may also like 'how to remove it only from blogger home'

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.