Tag Info

New answers tagged

3

There are tons of questions about using Ajax, so your question could be easily marked as duplicated but I see so BIG mistakes that I can't say to you that the question is duplicated without explaining your mistakes. The Ajax in Wordpress is handled in admin-ajax.php file, wehre you correctly sent the ajax request (see the url parameter of the Ajax call). ...


-2

Try to use complete instead of succes. Also, including wp-load isn't the best practice, what is the reason that you are including it?


0

There are two major strategies to choose from: Ideally, your development environment should be centered around a: distributed revision control and source code management system such as Git, together with a WordPress deployment system, such as Mark Jaquith's WP Stack. Otherwise, you will need to individually update each site with not only your updates to ...


0

If you mean in the footer? I looked at the Blaskan Theme, and saw hyphens in the footer menu. To change that... use CSS. Make the #footer-nav li:before { content: " \007C "; font-family: Arial, sans-serif; } That will change it from a hyphen. To a | To make it space out better, you may want to add padding-right: .4em;


0

You can change the number showposts=35 as you want <?php $page_num = $paged; if ($pagenum='') $pagenum =1; query_posts('showposts=35&paged='.$page_num); ?> <?php if ( have_posts() ) : ?> <div class"main"> <?php while ( have_posts() ) : the_post(); ?> <li>posts</li> <?php endwhile; ?> </div> ...


0

Ah! Sorry about this. It turns out after some further digging and playing around with the theme I figured out that the content.php file is what is being used. To combat this though I changed the include to content-home and duplicated and renamed the content.php file and now it works. Easy way to alter the design of the homepage. Answered.


0

Well you can make a single template for the entire site and may call different page content in different <div> using this code: <?php $page_id = 47; $page_data = get_page( $page_id ); echo $page_data->post_content ; ?>


1

Well I think I seem to be doing what I was intending too. Thanks @Milo for pointing me in the right direction! As You can see below I used the get_page_template_slug(); and str_replace() to filter through the templates used per page. Can someone Verify that this is a viable option? $args = array ( 'post_type' => 'page', ...


1

In those themes there's a screenshot.png or screenshot.jpg that gets used. I would recommend using an 880x660px image ( for the aspect ratio, and for retina displays )


1

Generaly using admin panel you can remove side bar widget go to Apperance=>widgets in that you wil see the name Main sidebar name in that box you will have the sidebar click and drag through left side or click and delete it. This is based for all the themes check it let you know for any doubts.


0

Let your plugin create a management page where the user can activate the different custom post types. Highlight the post types that the current theme supports, and explain what exactly that means. It could look like this: Post type Support by Your Cool Theme Name [x] Portfolio Template, search, custom editor fields [x] Event ...


0

-1 to the whole idea Breaking up your theme into two parts and calling one of them "plugin" do not solve the theme lock in problem. As long as there is only one theme that can access the CPT content there is a lock in even if in theory others themes can access it. A good CPT in a plugin should be self contained and work across all themes without requiring ...


0

The Custom Post Type won't fail to load just because your theme won't have support for 'custom-portfolio' if you define CPT in your plugin. There is always single.php which will be used if no other template is found. You can provide at least minimal css support from your plugin so that the content is understandable even if they switch theme. You can also ...


1

I think that your simplest option would be to update your installation using the localized version of WordPress for your native language (and making sure that WPLANG remains set accordingly), and then to use a plugin such as: English WordPress Admin Admin in English, or WP Native Dashboard ... in order to switch just the admin interface to English.


3

That isn't a WordPress theme -- it's a theme for Question2Answer, which is a totally different project.


0

In addition to Rarst's and Chip's answers above, register_nav_menu is used in this in manner: register_nav_menu( $location, $description ) What you've specified as primary_nav and secondary_nav are actually menu location identifiers and not the actual menu identifiers. That is why you have to use theme_location in your wp_nav_menu arguments instead of menu ...


1

Constants can not be redefined that easily. http://stackoverflow.com/questions/8465155/redefine-constants-in-php So, the constants from child themes will be used instead of parents one. Though, there will be a warning, but that shouldn't create any problem if you disable warning. You should add constants like this if you don't want any warning: if ( ...


0

Had the same problem, got solved here I just add the code from the last comment in my child themes functions.php, now embeds are working fine. Seems to be necessary because of automatically added paragraphs The code for functions from the reference mentioned above: add_filter( 'the_content', 'my_autoembed_adjustments', 7 ); /** * Add a new line ...


0

It seems that you are adding the menu levels as separate menus: A "Primary menu" containing the items: "HOME", "DPRK TOURS", "INTERNATIONAL", ... etc. A "Secondary menu" containing the items: "INTERNATIONAL GROUP TOURS", "VOLUNTEER PROGRAMS", ... etc. However, most themes support at most two such menu-levels, and some even support only one. So, if you ...


0

There are probably several approaches to doing this. One approach would be to select the categories and comments divs in your theme and use css to remove them. Example: In your style.css .entry-utility-prep-cat-links { display:none; }



Top 50 recent answers are included