I am working on a site that has to have a box on the top left with a "welcome" header (h1) and text (p). I don't want to use a specific blog post for the content if there is a better way to do it.
How can I make this happen? A screenshot is shown in the following picture. Oh and I'm not a Vanilla Ice fan ;)
Looks like a great place to add a widget area. Very easy to do. Refer to this: http://codex.wordpress.org/Widgetizing_Themes
I had similar problem. The solution I came up with is fairly simple - I just put a code of sidebar holder there (copied the original one and changed its ID) to make it visible as another sidebar in WP admin panel. Then I just added a HTML widget and put content there.
Related
I have a custom page (page-news.php) and I styled it. Now I need to change some texts, and I dont want to do this in hardcoded page-news.php but I want to be able to change that in Wordpress, without go to code. Did you have maybe some ideas how to do this?
Here is visualization of how I think it should work (the only thing I can change would be white custom-text with section-1,section-2 and section-3) and I will be do this in wp-admin > pages >news:
Any ideas? I will be grateful for answer
Use ACF plugin. After installation, you can create custom fields and define their types. In your case, you should create 3 editor field or textarea and attach them to you page. When you visit wp-admin>pages>news you'll see these fields. Use get_field($fieldSlug) in your page template to show the values.
How can I use a self-made Wordpress plugin to output for example a custom menu or custom HTML to a specific location? The only places I managed to output content is in wp_head and wp_footer, but is it possible to get content to show up anywhere else? Is it even possible to force the plugin to output the HTML for example inside a specific div or a DOM element?
Example scenarios
I want to add a custom button that triggers a menu or modal, but the button needs to be located inside the header and I also need a place for the modal HTML before the footer (example).
I want to add custom made "social share buttons" to every page and need a place to output the HTML after the page title.
Just to give you a feeling of what I'm trying to do...
Maybe I'm just way off track. I am new to this, but I am eager to learn.
"Teach me the ways of the force"
Appreciate any help, Thanks :)
So I know this is a bit out of ordinary for me to ask a question like this, but for some reason I am just really having an issue grasping this.
My Problem:
I have a responsive layout theme for word press, its clean its pretty. When implementing Google ad-sense into a text/html widget on the right bar it over runs the widget size and over hangs on the right hand side.
My Question:
What will be the best method for getting my ad to look more uniform. Is there a way to select a single widget css? Is there a way to put a div inside that widget and select the parent css from that div? Should I go in and hard code it into the theme?
Additional:
The theme I am using has a built in child theme option which I have chosen to use. When I place the code into the child themes function.php it breaks the theme and displays what I enter as plain text to the screen. Adding opening and close php tags did not seem to fix this issue.
Well it appears once again I asked a question before fully digging my brain into this. Hopefully this will become something useful for someone else.
FIX:
It appears that wordpress assigns a unique ID to every widget that is created.
Created New Text Widget
Wordpress Assigns: text-1
I can now go into css and manipulate this widget directly.
#text-1 {
//do somthing
}
It's always best to avoid hardcoding WP themes as when they get updated your modifications might vanish.
Glad to see you figured it out, I was going to say that you CAN add a div inside a widget and give it a name, which might still be be better than use the WP assigned layer name, as that might change if you were to delete or re-add the widget.
I am new to Word Press and I have been assigned to change something at work in our homepage.
I am always worked with raw HTML/CSS/php files, so I am a bit out of place here.
The page in question is the following: GAN Integrity Solutions Products
Inspecting the html I found where the CSS is (in the theme folder).
If I go in word press under pages, and I choose Products (which is the page I want) there is not content in it even in the text or visual editor. (but the page does indeed have content)
I installed the plugin called "Always edit in HTML" but it only removes the Visual tab and does not really replace it with the HTML tab (like I have seen a friend of mine has).
Also I am currently using WP v. 3.7.1 and I have not update because I still had to learn what happens when one updates (does it screw up my site? I can't afford to screw it up).
Anyone have any idea of what I am doing wrong or how I can solve this?
Btw the different "products" are created individually under "Portfolio" but what I would like to edit is that first link page html. What I need to do is instead of having pictures in the "squares" and then text as ones mouse over them, the reverse.
I would appreciate it!
Can you try to login in Wordpress?
You should go to pages and search for the product page.
Then check the template part.
Go to your themes map again and search for that template.
Your code should be there.
This is my first comment. Hope it is helpfull.
Thanks in advance.
I would like to have the 'posted by _' at the bottom of posts in wordpress, but not the time it was posted. From the html these are in the same tag (author), so if I wanted to hide one I would end up hiding the other as well. I was wondering if there is a way to hide the time posted from view without deleting part of a php file.
Posted by AUTHOR at 10:06 pm
<span class="author"><span class="icon"> </span>Posted by AUTHOR at 10:06 pm</span>
When I would like to have it look like:
Posted by AUTHOR
So I installed Suffusion on my blog to take a look at how to fix this. It looks like an option is provided to do this...
Go to WP admin panel
Go to Appearance>Suffusion Options then Other Graphical Elements on top
Go to Post and Page Bylines tab on the left side
Look for the options called "Posted By" format and change them as seen
below. There should be one under the Posts section and one under the Pages section.
If you need to customize further, the code for the author line is in
suffusion\functions\actions.php : suffusion_print_author_byline()
Also, for a more generic answer that can be used on other themes, you can search your theme files for references to "get_the_time" or "the_time", which are the built in functions in WP to get the post time for a post.
You might be able to get away with targeting the element with css. display:none. You should be able to target the date specifically with css. That's the way it is with my blog. Then you can just use display:none. What theme are you using?