Wordpress - Making text within a div editable for cliënt - wordpress

I made a DIV within the header of my WordPress theme. Within this DIV there are two headers with some text in it (title and description of a current offer) I want the client to be able to edit this the text within this DIV region. I can't find an easy way to just make some text within a DIV editable.
Is there an easy way? making a new page template isn't an easy way I think, because the DIV is within the html code of my header, it's not a custom post within WordPress.

If you know your way around WordPress you could create a new sidebar widget and inject that sidebar into your header.
The client could edit the text in the Widget area of the admin.

You could use JQuery. When you click the div, replace the div, with an textarea.

Related

Picture to nav menu in Wordpress

I would ask you for help because I could not find solve of this problem too long time.
Is some simple possible way hot to replace text in wordpress menu by some icon just with css? I need insert picture in main menu of http://www.monetaria.cz . I tried to use class in specification of menu items and for erase text I used text-indent bud it did this problem
https://picasaweb.google.com/lh/photo/idGdXrE_x3LLDWvJQ-doyKHTNTSbdw6n6xqWnRyE6B8?feat=directlink
Thank you very much,
John
you can add HTML straight into a menu item and WP will render it properly, so if you add something like this
<img src="source.jpg" />
into the Label field of a Custom Link and enter whatever link you want the menu item to go to into the URL field, then WP will render the <img> tag as an image and also wrap it in a link to your specified URL

How to put a widget in a page

I am new to wordpress and I am trying to figure out how menus relate to widgets. Is there a way I can add a widget to a page? Not on the side bar but in the page.
Not easily, I'm afraid :( However, a 'sidebar' in WordPress can be any container in your website. It does not necessarily need to be on the side of your page. You can use register_sidebar() in your functions.php file to create a new sidebar, then simply display the widgets in your new sidebar with dynamic_sidebar(). It's your CSS that places the sidebar on the side of your page. If you look at it that way, you can instead use CSS to make a horizontal 'sidebar' for instance. The name 'sidebar' will most likely change at some point in the future to better reflect that.

Add widget to the middle of a Wordpress page

I am working on a blog at www.tosreport.com/scripting and might want to adjust where I place certain items such as the shoutbox plug-in on the right hand side of the page. Apparently, the only 'widget areas' are sidebar and footer. Is it possible to place a widget in the body of a page or even in the body of a particular post?
Of course, you just have to register another sidebar widget area:
http://codex.wordpress.org/Function_Reference/register_sidebar
And then, place on index.php or loop.php depends on your theme layout:
Check this code, this is an example of what you need, placing the previous code in the "ad" code:
https://stackoverflow.com/a/7001372/1478479

Is it possible to have a large image above the content node in Drupal?

I'm trying to replicate pages like the following using Drupal:
http://www.ams-neve.com/Products/Outboard/1073LB/1073LB.aspx
My problem is that I'd like the image at the top (which changes depending on which page you're on) to be part of the main content node, while the menu on the left is a sidebar region.
I'd like to have a 'product' content type where I can write the main copy, include linked files, etc. plus have a 'header image' which would be what appears at the top of the page.
I have the feeling that it can't be done like this because I'd essentially need bits of the node to be rendered into different blocks. If I theme the node template to wrap a div around the header image I can't figure out a way to have that moved to the top of the page and displace the left sidebar down.
Can anyone tell me if it's possible, or suggest an alternative route.
There are a lot of products so I need it to be a simple method.
The method I used was to create a Views Slideshow Block in Views. It pulled the header_image field from my node by looking at the page it was on. I put this block into the header of my page.
Anyone else looking at this should also check out Display Suite. You can do a lot of cool stuff with that.
if i'm not getting it wrong you are having problems with the default way in which drupal blocks work. Have you tried panels? It's an awesome plugin to work with drupal which let you create pages in a really flexible way.
You could have a custom field for your 'Product' content type that is an image or a text field to a URL for the header image. Just use CSS to place them where you'd like.
Alternatively, check out these links, I think they are what you are looking for.
http://drupal.org/project/headerimage
http://drupal.org/project/sections

Different sidebars for each Wordpress page

I'm making a Wordpress 2.9.2 theme, and I'd like each page to have its own sidebar than can be edited as easily as the page's content. It would be cumbersome to make a different template file for each sidebar. It would also be weird to add a "custom field" containing all the sidebar text, since I wouldn't be able to use the Visual/HTML editor. What I'd like is to have a tag similar to the tag, but instead of delimiting the content to be shown on the front page, it would split the post's content and sidebar. Is this possible? Or is there a better solution?
Make the sidebars widgetized and than use the widget logic plugin, so you can conditionally include widgets on any and all pages.
Doing this lets you utilize the out of the box widgets, which are awesome, and even integrated third party widgets that are just as great.
Also consider this: You widgetize other areas of your site, like your header, which can now use widgets and widget logic. This makes for a more flexible theme.

Resources