I have a clients website that uses a WordPress Genisis Framework Child Theme.
One of the widgets that are built into the theme is a featured page widget. It is placed on the front of the page. The widget gathers 250 characters and displays that on the front page along with the featured image from that page.
The problem is that because the next page only contains an iframe from another website the WordPress widget does not grab the text, so it leaves a nice blank hole on the clients homepage. The previous developer set it up this way and didn't bother to plug the hole.
Any ideas how I could get the text to display correctly.
I am familiar with most web languages and the WordPress back end so any suggestions would help.
You can try to place a hidden div on the page where you paste in the text that you want. It wont be dynamic if the integrated page changes but it could be a possible work around.
Related
I purchased a WP theme https://themeforest.net/item/pressville-municipal-wordpress-theme/19949423 and need to add general content area to the People page: https://preview.themeforest.net/item/pressville-municipal-wordpress-theme/full_screen_preview/19949423?_ga=2.67243158.624148492.1570058772-1881232054.1569979687
The People page is actually a section in the WP dashboard (kind of like Media or Portfolio section) so technically not a editable page in the WP backend. I contacted the theme creator and was told that it's customization (not included w/theme) and advised to hard code text into the php. The problem with that is it's not accessible to other users who have no design or code background.. Is there a way to create a page with editable content block for this People section so it's easily editable without knowing code?
Also, the “People” header text changes if you click on subcategories (to “Elected Officials”) for example. When you click a subcategory, the main menu (People page) no longer shows as active which can be confusing to users. Is there a way to fix this so header stays consistent (like Contact page header) and menu item shows active regardless of what subcategory(All, Elected Officials, etc) is selected on the People page? Thanks.
You can create a regular page called "People's page" and add text to it. Then if you want to show that page's content into a PHP template you can do the following:
Step 1. Create the Function
Open up your theme’s functions.php file and paste the following code, likely at the bottom of the page.
function cn_include_content($pid) {
$thepageinquestion = get_post($pid);
$content = $thepageinquestion->post_content;
$content = apply_filters('the_content', $content);
echo $content;
}
Step 2. Use the Function in a Template File
Next, open up the specific template file you want to include the Page’s content on and paste in the function:
<?php cn_include_content(31); ?>
Replace 31 with the ID of the Page you want to include. How to find a page ID.
Is sounds like you need to go to your wp-admin and click appearance/ menus. Here you can remove these menu items that might be default but have no pages associated with them. You can then add the pages you want and come back and create a custom menu. Hope that answers the first part of your question.
I want to modify the Index page or the Landing page of my WordPress site so that it looks different from the rest of the site. Essentially I want the body of the index page to be 5 large rotating pictures with the same static menu and header as the rest of the site but I'm not sure where and what I need to edit to make this change. I assume it has something to do with the theme itself but I thought I would ask here first to see if anyone has any expert opinions. Thanks!
You can set a static home page by going to Appearance->Customize->Static Front Page. Then create the page under Pages->Add New. You can add whatever custom code, images, etc. that you want on that new page. With most themes, your site's header and footer will be displayed on the page automatically.
From the codex: http://codex.wordpress.org/Creating_a_Static_Front_Page
Recently i have a requirement from client as he want dynamic sidebar (Text-Widget) content show over the Home Page. So, what ever he enter into text box i.e Link, Image or Text that should be come up over home page.
Can anybody give me hint to show Widget Content over Home or any Page?
Use this plugin Widget Logic
This plugin gives every widget an extra control field called "Widget logic" that lets you control the pages that the widget will appear on. The text field lets you use WP's Conditional Tags, or any general PHP code.
I've created an HTML page as part of my website which I would like to use as a template for news articles. The page has all the things it needs, it just needs to display the correct news article in it.
I installed WordPress on my webserver and now wonder how I can have wordpress publish articles using my HTML page?
Is this even possible since WordPress works with php?
thanks
What you are talking about is themes. Wordpress allows you to create a theme for your installation so it displays using your html/css (more or less)
The way I do this is copy the default theme and make changes in there, and then you can switch to your new theme in your settings.
Edit: in addition, you can also load up wordpress on any page using:
include( '/path_to/wordpress_install/wp-load.php' );
This will allow you to use wordpress functionality on any page of your site.
just edited the single.php file by pasting the desired html code and leaving the loop code there where the text needed to show up.
didn't need to break up the page in a header, body and footer. Left out sidebar for now, but will put it back after I edit it properly.
I have a Wordpress page which is showing gallery that I created by using Wordpress built-in post editor: into it here is its url: http://jalrosh.com/lylescenter/?page_id=8
Now the issue is that when I click on some image its big image opens in a new page and that is disturbing page design. It should come in the central area but it is appearing on the top of the remaining page.
There are several plugins that could help you do this. For example http://wordpress.org/extend/plugins/lightbox-2-wordpress-plugin/ I haven't used this plugin, but a wordpress plugin search for "lightbox" came with several options. Try some of them out and see what one you like best.
I haven't tried any of them but supposedly they should take any image and have it viewed via a lightbox (which is the correct term for having the image displayed over the existing page).