wordpress-theming

How to put custom HTML code in header of wordpress websites [closed]

社会主义新天地 提交于 2019-12-12 10:49:43
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . This is my website and I need to put html code in order to make the header option form functional http://emmacombes.com/ But I have no clue where I can paste the HTML Code for header. Wordpress theme used -

Does template hierarchy work the same in magento as child themes do in wordpress

社会主义新天地 提交于 2019-12-12 08:54:14
问题 I am new to magento and i'm confused about themes. I bought a theme and got it installed and now i need to make some changes. In wordpress ... ( which i am used to) what i would do at this point is to make a child theme ( which is essentially one css file with a tiny bit of code in it ) .... and any changes in that child theme would override the parent theme in that area only while the parent theme would govern everything else, the advantage being that when it comes to updating the theme i

Wordpress Theme Customizer - Add area for users to move around and organize widgets

泄露秘密 提交于 2019-12-12 08:44:36
问题 I am currently developing a Wordpress Theme, using the Theme Customizer to let users customize it, but I have got stuck. For the footer, I have created various widgets, containing different things like Recent Posts, or a Live Twitter Feed. I want the users to be able to organize them, in the order they want, yet I cannot work out how to do it. I found one other theme (Zerif Lite), that lets you do this (see image below), however I went through all the code and couldn't work out they did it,

HTML template is not working even after converting it into wordpress theme [closed]

北城以北 提交于 2019-12-12 06:59:54
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed last year . I have downloaded an HTML template and converted it into Wordpress theme.But I find following error "Broken Themes The following themes are installed but incomplete. Themes must have a stylesheet and a template. Name Description stheme Stylesheet is missing." Can anyone help me out?

Conditional Tags for Custom Taxonomy in Custom Post Type

白昼怎懂夜的黑 提交于 2019-12-12 06:25:10
问题 I do hope you give me a practical answer for this (maybe simple problem for you). I have crated a Custom Post Type named (example:) "Cuspost" and I have Custom Taxonomy inside Cuspost named "Custax". Then I have taxonomies: "A Custax" and "B Custax" inside Custax. What I want to do is just want to check the value of the Custax, for example with has_custax('a-custax') (similar to has_category('a-category') ); Next using is for this: <?php if (has_custax('a-custax')) { echo 'do something A'; }

How do i redirect non logged in users Wordpress

£可爱£侵袭症+ 提交于 2019-12-12 06:07:23
问题 I am looking to redirect users who are not logged in on any page of my WordPress website to a /welcome page which will have a sign up form on. This is pretty essential as it is a small social networking site. I am also trying to do this without having any redirect loop issues so my users can easily get to the /welcome page without any hassle. 回答1: Put this in your header.php file if( !is_user_logged_in() && !is_page( 'welcome' ) ) { wp_redirect( bloginfo( 'url' ) . '/welcome' ); exit; } Hope

how to pass parameter in wordpress plugin

落爺英雄遲暮 提交于 2019-12-12 06:06:57
问题 I am trying to pass argument in function and print the output in wordpress plugin i was not able to pass parameter here's my code global $postidd; $postidd=$_REQUEST["postid"]; function getcontent($postidd) { // do something with the args if($postidd) { $args12 = array( 'p'=>15, 'post_type' => 'offers', 'orderby' => 'title', 'order' => 'ASC' ); $the_query12 = new WP_Query( $args12 ); if ( $the_query12->have_posts() ) : while ( $the_query12->have_posts() ) : $the_query12->the_post(); return

The Favicon is not showing on my wordpress website especially on Chrome

别等时光非礼了梦想. 提交于 2019-12-12 05:49:11
问题 I have uploaded the favicon on my wordpress website but it is not showing on chrome. http://babygearsmalaysia.com Can anyone help me please? 回答1: The correct way to add a favicon is without shortcut , so instead of <link rel="shortcut icon" href="YOURPATH/favicon.png"> you should use <link rel="icon" href="YOURPATH/favicon.png"> Even better would be to leave out the tag and just use an favicon.ico file in your root directory. Further reading 回答2: 1) Clear your cache. http://support.google.com

Wordpress wp_update_comment function not working

浪尽此生 提交于 2019-12-12 04:58:26
问题 I've created a custom comment editor and for some reason, wp_update_comment is not working. It returns 1, which means it should have been successful but it's not actually updating anything. Listed below is my update code. It's important to note that I've double checked that the proper data is being added to $commentarr from the form POST. $commentarr = array(); $commentarr['comment_ID'] = $comment_ID; $commentarr['comment_content'] = $commentContent; $update_success = wp_update_comment(

Why echoing a local variable inside the same function is not working? [duplicate]

僤鯓⒐⒋嵵緔 提交于 2019-12-12 04:57:26
问题 This question already has answers here : What is the difference between get_the_* and the_* template tags in wordpress? (2 answers) Closed 2 years ago . In the flowing Code :(see down) I defined a local variable named post_author_nickname Why I can't use it inside the same function as HTML echo? I'm using the function directly instead of assigning it to variable The Code function head_scripts() { $options = get_option( 'ps_plugindev' ); if ( isset( $options['twitter'] ) && !is_admin() ) {