I'm creating a website with Drupal 7.
I've a contact block at the bottom of the page (as a footer page), but I need to put a link into a menĂº with an anchor. I mean, when an user press that link, it must scroll down the page to the contact block.
How could I do this? I don't see anything.
Thank's
The module Menu attributes is your life saver, install it, so you can add the name attribute to your link
I believe you need to use the Menu token module in order to get the path to the current page for the anchor link. Path for the menu item should be something like:
[current-page:url:path]#footer
Its simple! You just create a link and go to page content edit option through Drupal admin. In the bottom of edit content page you will get a URL path settings, there is url alias field on there. You just put path in your field.
Related
Instead of having the link opened in a new tab I would like to the link to be opened in an iframe that's on the same page.
Example:
I have my front page with an iframe on it. If I click on the menu items i would like to have the urls loaded in the iframe.
I can't seem to find an answer for this.
Alter the iframe in your front page as below
Make sure the iframe contains a name attribute (name="main-section")
<iframe name="main-section" src="home.html"></iframe>
In your menu items make sure the target attribute redirects to main-section (target="main-section"). This is an important step.
Example:
I am pretty sure you can achieve the above steps in wordpress.
I need to edit a page on my wordpress site, but the page doesn't show on the "Pages" feature. This page is accessible over a top menu that I can edit over the themes/template editing. However I cannot find a way to edit it or even find it on my file manager.
This is the page URL: http://protector-canum.de/linkliste/
I just need to add some content to it.
Anyone aware of how I can get this done?
Thanks!
Check the css class of your body tag and look for post-id-XXXX
use that number in your admin url
I relly need help. I made a wordpress website, but i dont know how to disable top page from drom down menu.
I want to turn off page "Apartmani" because it is a empty page, so can you tell me how to disable that page and when you want to click on it nothing happens.
Here s the picture http://www.dodaj.rs/f/t/13H/495kOjY8/pitanje.png so i want to unable "Apartmans".
Thanks
The easiest way for you do do this is not to add this "Apartmani" as a Page in your menu, but as a simple link (as you can add custom links in your menu), with "#" as target. As is you will have a menu item that will handle its sub-pages, but this item will not lead to anything at all as long as the targeted link is #...
I have a big one page wordpress site and a menu created from wordpress admin pages panel. I added everywhere in my main page such links like <A NAME="gohere"> and similar. Now I need to add href's to the page menu name's like <a href="#gohere"> Actually I do not know is it possible to do this from the wordpress admin page's menu or maybe anybody know where these pages are stored so that I could add the links manually in the file's. Thanks!
Tried plugin "Page Links to" and added something like <A NAME="gohere"> as a link in where, but unfortunately plugin do not understand this,
Regards,
You shouldn't use the name attribute of the a element. Instead, assign ID values to the elements of your page, for instance:
Link to foo
<div id="foo">
<!-- Your foo content goes here -->
</div>
For your question: You can manually add links to your WordPress menu, entering custom values as the href attribute. To add a link, enter #foo in the URL field of the custom link in the menu admin section.
Are you using the WordPress's built in menu manager? (Appearance -> Menus)
If so, then yes it should be fairly simple.
First you need to mark the areas within the page you want to link to - setting an ID to the element is enough. So if you want the browser to scroll to the top of the latest posts when a link is clicked, for example, you need to add an ID to the tag that contains the latest posts. Then give it a unique name (this is important). So something like id="latest_posts_area" should do it. Be warned though, you may need to edit the template files to do this, so ensure you have taken a backup of your theme just in case you make any mistakes.
So, if you have:
<div class="latest_posts">
You would edit it to be:
<div class="latest_posts" id="latest_posts_area">
Then, in the admin menu, when adding/editing a link, you simply set the URl as #latest_posts_area - then on every page that link is visible, clicking it will scroll the users browser to the to the top of the tag you added the ID to.
I've assigned a page from Pages module as home page. And now the main menu shows the menu item called 'Main' which leads to '/main' page. How can I change that to make the 'Main' menu item link to really '/' of the site ?
Updated:
Sorry if it is not clear, the 'page' i mean is really a page - ( Site building -> Pages ).
If you go to the Site Information section of your admin panel, you can set a specific node to show up as the front page. I would use the node/XX way of referencing your node, since the alias you gave the node ("main") may change. Once you've done that, you can change your menu link to go to <front>, which will automatically send it to whatever node is designated as the front page.
Got it.
If I mark a 'page' as to be the front page of the site, and it has a menu item, this menu item leads to something like '/main', but not the '/'. To fix it I removed any menu reference on the page properties and then in the menu editor add the required link with the path ''.
Thanks for the response!
On top of what everyone else has said, can I just let you know of a mistake that I made.
I had pathauto switched on, but it was set to delete old path and create a new path if the title of a page changed.
And you know what, this happened to my home page, so where the page I'd over ridden and called homepage, was now called welcometothisthatortheother (if you know what I mean).
My advise if your using pathauto is to use the nid value ( node/11 ) or make sure unlike me, that you only create new paths on page inserts rather than updates.