Linking back to home page in wordpress - html

So I have WordPress installed in a subdirectory of my website with permalinks set up.
I have my website set up like so:
-index.php
-style.css
-/contact
---index.php
-/blog
---(Wordpress installation)
So my problem is, whenever I use an Home to link back to my homepage, it only works from my main blog page. If I go to a permalink post it takes me back to the blog home.
What I'm wondering is, is there a way to link back to the main page on both my blog home, and a permalink post? If i use ../../ it works on the post, but not the blog home.
I hope I worded this clearly enough, if I missed anything please let me know. Any help greatly appreciated, thanks.

Home
See: http://codex.wordpress.org/Function_Reference/home_url

You can use the home_url function: http://codex.wordpress.org/Function_Reference/home_url
I also recommend checking out the WordPress Function reference, and use the appropriate built in functions rather than inventing your own.
Edit: Not sure if you want to go back to the main index, or the WordPress index. If you just want to link back to your first index.php, you can simply use <a href="/>Home</a>

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.

Where can I edit/see the HTML of this Wordpress free theme?

the answer to this one will probably be obvious to many of you, but I recently decided to make a website for my girlfriend and expand my knowledge while doing that. So here is my dilemma:
I am using the Blossom Mommy Blog theme, which is a child of the Blossom Feminine theme.
Below a single post page, there is a previous post/ next post navigation menu and the "previous/next" text is in English and I want to change that to be in Bulgarian. I was able to see this in the browser debugger, but I can't seem to find where this comes from in the theme files themself, so any help would be really appreciated!
P.S. I even prepared a screenshot, but apparently I cannot attach files here...
P.P.S. Tried looking at the parent and child functions.php, also the templates, but could not find this HTML. Looks like some function is calling it, but I have no idea where to find this function.
With many thanks,
Dobri
Function: previous_posts_link();
Function: next_posts_link();
Use:
previous_posts_link( "Your label" );
More info:
https://codex.wordpress.org/Function_Reference/next_posts_link
https://codex.wordpress.org/Function_Reference/previous_posts_link

Problems with create internal links( Anchor links) on a blog post in Blogger?

6:23 AM (1 hour ago)
Hi, can anybody help to understand how to create Internal links (Anchor Links) in a post? I can't able to find any helpful answer. Feeling very frustrated.
I did exactly what a person said me on the Blogger product forum -
For anchor link:
You can create hyperlink in the HTML mode. Just insert the following code where you want to place an anchor. (you can change archorlinkname to whatever you like)
<a name="anchorlinkname"></a>
For the link within the same post that you want to jump to that anchor, please use this code. (you can also change the word in yellow)
Click here to go to anchorlinkname
But something weird is happening once I am updating my post or going from HTML mode to Compose mode.
Error -
<a href="https://www.blogger.com/blogger.g?blogID=48019486#overview">
I don't know why these https://blogger.com/blogger.g?blogID=48 and https://blogger.com/null gets added automatically. It redirecting me back to the admin post section or to blogger sign in section if I am not Signed In.
My Blog - www.lifewithdata.com
Found the answer here: https://productforums.google.com/forum/#!topic/blogger/5MU_HH5T7rA
you must add the address of the page or post.
only works in the non-dynamic templates.
Peace be upon those who follow guidance, I was able to make internal links within post on blogspot platform by using anchors like below:
sectionName
<a name="sectionName">sectionName</a>
I was using a theme based on Dynamic Views and worked for me, and changed it to other theme and the links still work.

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.